add user_id to share

This commit is contained in:
alan snape 2016-12-28 07:16:32 +00:00
parent 9cbabcce84
commit 7d3b4fae28
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddUserIdToShare < ActiveRecord::Migration
def change
add_column :shares, :user_id, :integer
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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| create_table "comments", force: :cascade do |t|
t.text "content" t.text "content"
@ -66,6 +66,7 @@ ActiveRecord::Schema.define(version: 20161228071235) do
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.integer "project_id" t.integer "project_id"
t.integer "user_id"
end end
create_table "users", force: :cascade do |t| create_table "users", force: :cascade do |t|