Class: CreateComments
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateComments
- Defined in:
- lib/generators/squeezer/templates/db/migrate/comments.rb,
lib/generators/squeezer/templates/db/migrate/create_comments.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/generators/squeezer/templates/db/migrate/comments.rb', line 12 def self.down drop_table :comments end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/squeezer/templates/db/migrate/comments.rb', line 2 def self.up create_table :comments do |t| t.integer :commentable_id t.string :commentable_type t.boolean :open t. end end |