Files
grecia/db/migrate/20171004025903_create_poll_question_answers.rb
2017-10-03 23:04:50 -04:00

10 lines
250 B
Ruby

class CreatePollQuestionAnswers < ActiveRecord::Migration
def change
create_table :poll_question_answers do |t|
t.string :title
t.text :description
t.references :poll_question, index: true, foreign_key: true
end
end
end