Add missing migrations
This commit is contained in:
parent
a2e41bdc2d
commit
d81c2b2ccf
3 changed files with 18 additions and 0 deletions
5
db/migrate/20250322172051_add_vote_to_ratings.rb
Normal file
5
db/migrate/20250322172051_add_vote_to_ratings.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddVoteToRatings < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_reference :ratings, :vote, null: false, foreign_key: true
|
||||
end
|
||||
end
|
||||
8
db/migrate/20250328010547_create_organizers.rb
Normal file
8
db/migrate/20250328010547_create_organizers.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class CreateOrganizers < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :organizers do |t|
|
||||
t.belongs_to :vote
|
||||
t.belongs_to :user
|
||||
end
|
||||
end
|
||||
end
|
||||
5
db/migrate/20250328014902_add_state_to_votes.rb
Normal file
5
db/migrate/20250328014902_add_state_to_votes.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddStateToVotes < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :votes, :state, :string
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue