Class: CreatePageContent
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePageContent
- Defined in:
- lib/generators/thesis/install/templates/migrations/create_page_content.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/generators/thesis/install/templates/migrations/create_page_content.rb', line 12 def self.down drop_table :page_contents end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/thesis/install/templates/migrations/create_page_content.rb', line 2 def self.up create_table :page_contents do |t| t.integer :page_id, null: false t.string :name, null: false t.text :content, default: "Edit This Content Area" t.string :content_type, default: :html t. end end |