Files
grecia/db/migrate/20171004210108_create_poll_question_answer_videos.rb
2017-10-04 17:25:51 -04:00

12 lines
323 B
Ruby

class CreatePollQuestionAnswerVideos < ActiveRecord::Migration
def change
create_table :poll_question_answer_videos do |t|
t.string :title
t.string :url
t.integer :answer_id, index: true
end
add_foreign_key :poll_question_answer_videos, :poll_question_answers, column: :answer_id
end
end