Added comments

This commit is contained in:
Godwin
2016-07-09 15:25:27 -07:00
parent 8d010eaf3b
commit c6f8d4ed58
21 changed files with 1206 additions and 27 deletions
@@ -0,0 +1,11 @@
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.string :model_type
t.integer :model_id
t.text :comment
t.timestamps null: false
end
end
end
@@ -0,0 +1,5 @@
class AddUserIdToComments < ActiveRecord::Migration
def change
add_column :comments, :user_id, :integer
end
end