class AddTypesToQuestionsAndOptions

Public Instance Methods

change() click to toggle source
# File lib/generators/templates/migration_add_types_to_questions_and_options.rb, line 2
def change
  #Survey Questions table
  add_column :survey_questions, :questions_type_id, :integer
  
  #Survey Options table
  add_column :survey_options, :options_type_id, :integer
  
  #Survey Answers table
  add_column :survey_answers, :option_text, :text
  add_column :survey_answers, :option_number, :integer
end