Sha256: ed553712e86d844a9c719c0072d1e2aa09a23b424daea72045d014863c557a7c
Contents?: true
Size: 600 Bytes
Versions: 13
Compression:
Stored size: 600 Bytes
Contents
class RecordProxyPageModelMigration < Migration def self.up(site) site.pages.create_model :record_proxy_pages do |record_proxy_pages| add_one :record_model, model: :model add_one :after_create_page, model: :page add_one :after_delete_page, model: :page add_one :after_update_page, model: :page add_field :show_record_layout, :string add_one :show_record_layout_record, model: :layout, display: false record_proxy_pages.record_class_name = 'RecordProxyPage' end end def self.down(site) site.record_proxy_pages.destroy end end
Version data entries
13 entries across 13 versions & 3 rubygems