class CreateAnswers

Public Instance Methods

change() click to toggle source
# File lib/survey_constructor/generators/templates/migrate/20180523222646_create_answers.rb, line 2
def change
  create_table :answers do |t|
    t.string :justification
    t.belongs_to :question, index: true
    t.timestamps
  end
end