Class: CreatePages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePages
- Defined in:
- lib/generators/squeezer/templates/db/migrate/pages.rb,
lib/generators/squeezer/templates/db/migrate/create_pages.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/squeezer/templates/db/migrate/pages.rb', line 13 def self.down drop_table :pages end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/squeezer/templates/db/migrate/pages.rb', line 2 def self.up create_table :pages do |t| t.string :title t.text :body t.integer :user_id t.string :menu t. end end |