2015-01-08 12:00:43 +08:00
|
|
|
class CreatePollQuestions < ActiveRecord::Migration
|
2015-01-08 17:42:46 +08:00
|
|
|
def up
|
2015-01-08 12:00:43 +08:00
|
|
|
create_table :poll_questions do |t|
|
|
|
|
t.string :question_title
|
|
|
|
t.integer :question_type
|
|
|
|
t.integer :is_necessary
|
2015-01-08 17:42:46 +08:00
|
|
|
t.integer :poll_id
|
2015-01-08 12:00:43 +08:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
2015-01-08 17:42:46 +08:00
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :poll_questions
|
|
|
|
end
|
2015-01-08 12:00:43 +08:00
|
|
|
end
|