Add VotationType model

This commit is contained in:
decabeza
2022-08-30 12:09:13 +02:00
committed by Senén Rodero Rodríguez
parent d2cc110678
commit d1c1aa6691
7 changed files with 100 additions and 0 deletions

View 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