Create model for ratings
This commit is contained in:
parent
6682c8c300
commit
4b5685124c
4 changed files with 44 additions and 2 deletions
10
db/migrate/20250321235135_create_ratings.rb
Normal file
10
db/migrate/20250321235135_create_ratings.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateRatings < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :ratings do |t|
|
||||
t.belongs_to :user
|
||||
t.belongs_to :candidate
|
||||
t.integer :value
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue