Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add migration for render_as_partial_for_layout toggle

  • Loading branch information...
commit b2b069aecf1219e3cdde0a53fa2a64262c64b15d 1 parent 87e8566
@ethier ethier authored
View
13 db/migrate/20120723144115_add_render_as_partial_for_layout_for_spree_pages.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.