From 7d3b4fae28bfc8b6870dc6a20e5ebf640a6b74d3 Mon Sep 17 00:00:00 2001 From: alan snape Date: Wed, 28 Dec 2016 07:16:32 +0000 Subject: [PATCH] add user_id to share --- db/migrate/20161228071511_add_user_id_to_share.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20161228071511_add_user_id_to_share.rb diff --git a/db/migrate/20161228071511_add_user_id_to_share.rb b/db/migrate/20161228071511_add_user_id_to_share.rb new file mode 100644 index 0000000..a870399 --- /dev/null +++ b/db/migrate/20161228071511_add_user_id_to_share.rb @@ -0,0 +1,5 @@ +class AddUserIdToShare < ActiveRecord::Migration + def change + add_column :shares, :user_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index cbc7986..bcd8326 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20161228071235) do +ActiveRecord::Schema.define(version: 20161228071511) do create_table "comments", force: :cascade do |t| t.text "content" @@ -66,6 +66,7 @@ ActiveRecord::Schema.define(version: 20161228071235) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "project_id" + t.integer "user_id" end create_table "users", force: :cascade do |t|