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

Version Path
yodel-0.0.7 lib/yodel/models/migrations/10_record_proxy_page_model.rb
yodel_production_environment-0.0.7 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel_development_environment-0.0.7 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel_production_environment-0.0.4 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel_development_environment-0.0.4 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel-0.0.4 lib/yodel/models/migrations/10_record_proxy_page_model.rb
yodel-0.0.3 lib/yodel/models/migrations/10_record_proxy_page_model.rb
yodel_production_environment-0.0.2 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel_development_environment-0.0.2 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel-0.0.2 lib/yodel/models/migrations/10_record_proxy_page_model.rb
yodel-0.0.1 lib/yodel/models/migrations/10_record_proxy_page_model.rb
yodel_development_environment-0.0.1 lib/migrations/yodel/10_record_proxy_page_model.rb
yodel_production_environment-0.0.1 lib/migrations/yodel/10_record_proxy_page_model.rb