Sha256: 3fb8053d468d83ab8761c6c3b54cfb93b3611177bfa3df9baebed806f9b35ded
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
class AddVisibleToPages < SolidusSupport::Migration[4.2] class Page < ActiveRecord::Base end def self.up add_column :spree_pages, :visible, :boolean if Page.table_exists? Page.update_all :visible => true else Spree::Page.update_all :visible => true end end def self.down remove_column :spree_pages, :visible end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_static_content-2.0.0 | db/migrate/20090814113100_add_visible_to_pages.rb |