Class: AddTypesToQuestionsAndOptions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddTypesToQuestionsAndOptions
- Defined in:
- lib/generators/templates/migration_add_types_to_questions_and_options.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# 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 |