Class: AddMenuPositionToPages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddMenuPositionToPages
- Defined in:
- lib/generators/tkh_menus/create_or_update_migrations/templates/add_menu_position_to_pages.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
6 7 8 |
# File 'lib/generators/tkh_menus/create_or_update_migrations/templates/add_menu_position_to_pages.rb', line 6 def down remove_column :pages, :menu_position end |
#up ⇒ Object
2 3 4 |
# File 'lib/generators/tkh_menus/create_or_update_migrations/templates/add_menu_position_to_pages.rb', line 2 def up add_column :pages, :menu_position, :integer, :default => 0 end |