Files
growstuff/db/migrate/20130206033956_create_comments.rb
2019-12-26 13:38:17 +13:00

14 lines
250 B
Ruby

# frozen_string_literal: true
class CreateComments < ActiveRecord::Migration[4.2]
def change
create_table :comments do |t|
t.integer :post_id
t.integer :author_id
t.text :body
t.timestamps null: true
end
end
end