Skip to content

Commit

Permalink
Add migration for render_as_partial_for_layout toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ethier committed Jul 23, 2012
1 parent 87e8566 commit b2b069a
Showing 1 changed file with 13 additions and 0 deletions.
@@ -0,0 +1,13 @@
class AddRenderAsPartialForLayoutForSpreePages < ActiveRecord::Migration
def up
unless column_exists? :spree_pages, :render_layout_as_partial
add_column :spree_pages, :render_layout_as_partial, :boolean, :default => false
end
end

def down
if column_exists? :spree_pages, :render_layout_as_partial
remove_column :spree_pages, :render_layout_as_partial
end
end
end

0 comments on commit b2b069a

Please sign in to comment.