2015-01-08 12:00:43 +08:00
|
|
|
class CreatePollAnswers < ActiveRecord::Migration
|
2015-01-08 17:42:46 +08:00
|
|
|
def up
|
2015-01-08 12:00:43 +08:00
|
|
|
create_table :poll_answers do |t|
|
2015-01-08 17:42:46 +08:00
|
|
|
t.integer :poll_question_id
|
2015-01-08 12:00:43 +08:00
|
|
|
t.text :answer_text
|
|
|
|
t.integer :answer_position
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
2015-01-08 17:42:46 +08:00
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :poll_answers
|
|
|
|
end
|
2015-01-08 12:00:43 +08:00
|
|
|
end
|