Class: ThesisCreatePageContent
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- ThesisCreatePageContent
- Defined in:
- lib/generators/thesis/install/templates/migrations/thesis_create_page_content.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/generators/thesis/install/templates/migrations/thesis_create_page_content.rb', line 15 def self.down drop_table :page_contents end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/thesis/install/templates/migrations/thesis_create_page_content.rb', line 2 def self.up # Please note: if you change this (in the thesis gem) please # update the /spec/spec_helper.rb to match. 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 |