Class: AddMandatoryToQuestionsTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddMandatoryToQuestionsTable
- Defined in:
- lib/generators/templates/migration_add_mandatory_to_questions_table.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 |
# File 'lib/generators/templates/migration_add_mandatory_to_questions_table.rb', line 2 def change #Survey Questions table add_column :survey_questions, :mandatory, :boolean, :default => false end |