Sha256: 3ef4917c7c52de81d403cda3c01570063d60096d2926ef8c0ed1c61c092eb071

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

class AddRenderAsPartialForLayoutForSpreePages < SolidusSupport::Migration[4.2]
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_static_content-2.0.0 db/migrate/20120723144115_add_render_as_partial_for_layout_for_spree_pages.rb