class CreateComments
Public Class Methods
down()
click to toggle source
# File lib/generators/squeezer/templates/db/migrate/comments.rb, line 12 def self.down drop_table :comments end
up()
click to toggle source
# 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.timestamps end end