Class: AddShowInSidebarOptionToPages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddShowInSidebarOptionToPages
- Defined in:
- lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb', line 6 def self.down remove_column :pages, :show_in_sidebar end |
.up ⇒ Object
2 3 4 |
# File 'lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb', line 2 def self.up add_column :pages, :show_in_sidebar, :boolean, :default=> false, :null=>false end |