thingspeak/db/migrate/20110425145717_create_comments.rb
2014-02-17 12:05:39 -05:00

18 lines
302 B
Ruby

class CreateComments < ActiveRecord::Migration
def self.up
create_table :comments do |t|
t.integer :parent_id
t.text :body
t.integer :flags
t.integer :user_id
t.string :ip_address
t.timestamps
end
end
def self.down
drop_table :comments
end
end