Class: AddDisplayOrderToSurveys
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddDisplayOrderToSurveys
- Defined in:
- lib/generators/surveyor/templates/db/migrate/add_display_order_to_surveys.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
7 8 9 |
# File 'lib/generators/surveyor/templates/db/migrate/add_display_order_to_surveys.rb', line 7 def self.down remove_column :surveys, :display_order end |
.up ⇒ Object
3 4 5 |
# File 'lib/generators/surveyor/templates/db/migrate/add_display_order_to_surveys.rb', line 3 def self.up add_column :surveys, :display_order, :integer end |