Create 'poll_question_answers' table

This commit is contained in:
Angel Perez
2017-10-03 23:04:50 -04:00
parent d9d03079e1
commit 1d1b861ddf
4 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
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