Class: CreateFeatherPages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFeatherPages
- Defined in:
- lib/generators/feather_cms/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/feather_cms/templates/migration.rb', line 2 def change create_table :feather_cms_pages do |t| t.string :name t.string :status, :default => 'draft' t.text :content t.string :layout, :default => 'application' t.string :template_type, :default => 'html' t. end end |