Added comments
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user