cocoon/spec/dummy/db/migrate/20110306212250_create_comments.rb
2011-03-06 22:40:37 +01:00

16 lines
248 B
Ruby

class CreateComments < ActiveRecord::Migration
def self.up
create_table :comments do |t|
t.text :body
t.string :author
t.integer :post_id
t.timestamps
end
end
def self.down
drop_table :comments
end
end