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
|
||||
+10
-1
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160707034050) do
|
||||
ActiveRecord::Schema.define(version: 20160708042511) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -24,6 +24,15 @@ ActiveRecord::Schema.define(version: 20160707034050) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.string "model_type"
|
||||
t.integer "model_id"
|
||||
t.text "comment"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "user_id"
|
||||
end
|
||||
|
||||
create_table "conference_admins", force: :cascade do |t|
|
||||
t.integer "conference_id"
|
||||
t.integer "user_id"
|
||||
|
||||
Reference in New Issue
Block a user