Add missing migrations

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent a2e41bdc2d
commit d81c2b2ccf
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddVoteToRatings < ActiveRecord::Migration[7.2]
def change
add_reference :ratings, :vote, null: false, foreign_key: true
end
end

View 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

View file

@ -0,0 +1,5 @@
class AddStateToVotes < ActiveRecord::Migration[7.2]
def change
add_column :votes, :state, :string
end
end