Sha256: a9ba7bfe317b0fd6d54c9f1310c8cf1ff26b4116dc611615e90421b3322f9aaf

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 Bytes

Contents

class CreateEcmCmsCoreTemplates < ActiveRecord::Migration
  def self.up
    create_table :ecm_cms_core_templates do |t|
      t.references :folder
      t.string :pathname
      t.string :basename
      t.string :title
      t.text :meta_description
      t.text :body
      t.string :layout
      t.string :locale
      t.string :format
      t.string :handler
      t.boolean :partial, :default => false

      t.timestamps
    end
  end

  def self.down
    drop_table :ecm_cms_core_templates
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.8 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
ecm_cms_core-0.0.7 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
ecm_cms_core-0.0.6 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
ecm_cms_core-0.0.5 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
ecm_cms_core-0.0.3 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
ecm_cms_core-0.0.2 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb