Sha256: 4ffe3d2d82e6db77c7258bcb1b9053a1b6585522a19443883630bc5b9af93ae6

Contents?: true

Size: 310 Bytes

Versions: 35

Compression:

Stored size: 310 Bytes

Contents

class LoadDemoSiteData < ActiveRecord::Migration
  extend Cms::DataLoader
  
  def self.up
<%= data %>

    # Create templates
    <% page_templates.each do |pt| %>
<%= pt %>
    <% end %>

    # Create partials
    <% page_partials.each do |pp| %>
<%= pp %>
    <% end %>
  end
  
  def self.down
  end
  
end

Version data entries

35 entries across 35 versions & 11 rubygems

Version Path
browsercms-3.1.0 rails_generators/browser_cms_demo_site/templates/migration.rb
we5-browsercms-3.1.0 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.6 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.5 rails_generators/browser_cms_demo_site/templates/migration.rb
we5-browsercms-3.0.5.1 rails_generators/browser_cms_demo_site/templates/migration.rb
we5-browsercms-3.0.5 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms_s3-3.0.5 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.4 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.3 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms_s3-3.0.4 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms_s3-3.0.3 rails_generators/browser_cms_demo_site/templates/migration.rb
we5-browsercms-3.0.2 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.2 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.1 rails_generators/browser_cms_demo_site/templates/migration.rb
browsercms-3.0.0 rails_generators/browser_cms_demo_site/templates/migration.rb