Add VotationType model
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
d2cc110678
commit
d1c1aa6691
12
db/migrate/20220323233643_add_votation_types.rb
Normal file
12
db/migrate/20220323233643_add_votation_types.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class AddVotationTypes < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :votation_types do |t|
|
||||
t.integer :questionable_id
|
||||
t.string :questionable_type
|
||||
t.integer :vote_type
|
||||
t.integer :max_votes
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user