Sha256: 453a29c9d65d4a20d2e864c7df76168b137d5fd1c4fc160012e94433e680ce10

Contents?: true

Size: 258 Bytes

Versions: 78

Compression:

Stored size: 258 Bytes

Contents

class AddDefaultTemplate < ActiveRecord::Migration
  def self.up
    ConstructorPages::Template.create!(
      :name => "Page",
      :code_name => "page",
      :child_id => 1
    )
  end

  def self.down
    ConstructorPages::Template.delete_all
  end
end

Version data entries

78 entries across 78 versions & 3 rubygems

Version Path
constructor-pages-0.8.1 db/migrate/12_add_default_template.rb
constructor-pages-0.8.0 db/migrate/12_add_default_template.rb
constructor-pages-0.7.10 db/migrate/12_add_default_template.rb
constructor-pages-0.7.9 db/migrate/12_add_default_template.rb
constructor-pages-0.7.8 db/migrate/12_add_default_template.rb
constructor-pages-0.7.7 db/migrate/12_add_default_template.rb
constructor-pages-0.7.6 db/migrate/12_add_default_template.rb
constructor-pages-0.7.5 db/migrate/12_add_default_template.rb
constructor-pages-0.7.4 db/migrate/12_add_default_template.rb
constructor-pages-0.7.3 pages/db/migrate/12_add_default_template.rb
constructor-core-0.7.3 pages/db/migrate/12_add_default_template.rb
constructor-cms-0.7.3 pages/db/migrate/12_add_default_template.rb
constructor-pages-0.7.2 pages/db/migrate/12_add_default_template.rb
constructor-core-0.7.2 pages/db/migrate/12_add_default_template.rb
constructor-cms-0.7.2 pages/db/migrate/12_add_default_template.rb
constructor-core-0.7.1 pages/db/migrate/12_add_default_template.rb
constructor-pages-0.7.0 db/migrate/12_add_default_template.rb
constructor-cms-0.7.0 pages/db/migrate/12_add_default_template.rb
constructor-pages-0.6.4 db/migrate/12_add_default_template.rb
constructor-cms-0.6.4 pages/db/migrate/12_add_default_template.rb