Class: CreateEcmCmsCoreTemplates
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateEcmCmsCoreTemplates
- Defined in:
- lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
20 21 22 |
# File 'lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb', line 20 def self.down drop_table :ecm_cms_core_templates end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_templates.rb', line 2 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. end end |