Class: CreateContentBlocks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateContentBlocks
- Defined in:
- lib/generators/manifest/install/templates/create_content_blocks.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/manifest/install/templates/create_content_blocks.rb', line 2 def change create_table :content_blocks do |t| t.string :title t.string :slug t.text :content t.integer :page_id t.boolean :allow_html, default: false t. end end |