class CreateAnswerChoices

Public Instance Methods

change() click to toggle source
# File lib/survey_constructor/generators/templates/migrate/20180611182929_create_answer_choices.rb, line 2
def change
  create_table :answer_choices do |t|
    t.belongs_to :answer, index: true
    t.belongs_to :choice, index: true

    t.timestamps
  end
end