Class: CreateContents
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateContents
- Defined in:
- lib/generators/contentment/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'lib/generators/contentment/templates/migration.rb', line 16 def self.down drop_table :contents end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/contentment/templates/migration.rb', line 3 def self.up create_table :contents do |t| t.string :title t.text :body t.string :tipe t.string :dom_id t.integer :position t.boolean :visible t.string :link t. end end |