Legislation Answer model
This commit is contained in:
13
db/migrate/20161222115744_create_legislation_answers.rb
Normal file
13
db/migrate/20161222115744_create_legislation_answers.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateLegislationAnswers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :legislation_answers do |t|
|
||||
t.references :legislation_question, index: true
|
||||
t.references :legislation_question_option, index: true
|
||||
t.references :user, index: true
|
||||
|
||||
t.datetime :hidden_at, index: true
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user