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-1.0.0beta1 db/migrate/12_add_default_template.rb
constructor-pages-0.9.1 db/migrate/12_add_default_template.rb
constructor-pages-0.9.0 db/migrate/12_add_default_template.rb
constructor-pages-0.8.19 db/migrate/12_add_default_template.rb
constructor-pages-0.8.18 db/migrate/12_add_default_template.rb
constructor-pages-0.8.17 db/migrate/12_add_default_template.rb
constructor-pages-0.8.16 db/migrate/12_add_default_template.rb
constructor-pages-0.8.15 db/migrate/12_add_default_template.rb
constructor-pages-0.8.14 db/migrate/12_add_default_template.rb
constructor-pages-0.8.13 db/migrate/12_add_default_template.rb
constructor-pages-0.8.12 db/migrate/12_add_default_template.rb
constructor-pages-0.8.11 db/migrate/12_add_default_template.rb
constructor-pages-0.8.10 db/migrate/12_add_default_template.rb
constructor-pages-0.8.8 db/migrate/12_add_default_template.rb
constructor-pages-0.8.7 db/migrate/12_add_default_template.rb
constructor-pages-0.8.6 db/migrate/12_add_default_template.rb
constructor-pages-0.8.5 db/migrate/12_add_default_template.rb
constructor-pages-0.8.4 db/migrate/12_add_default_template.rb
constructor-pages-0.8.3 db/migrate/12_add_default_template.rb
constructor-pages-0.8.2 db/migrate/12_add_default_template.rb