guoren/db/migrate/20161129022212_create_comme...

13 lines
248 B
Ruby

class CreateComments < ActiveRecord::Migration[5.0]
def change
create_table :comments do |t|
t.string :content
t.integer :user_id
t.integer :micro_post_id
t.datetime :comment_time
t.timestamps
end
end
end