From 7d09de6613429744b31b9eac3c1a96183131c4f0 Mon Sep 17 00:00:00 2001 From: alan snape Date: Wed, 28 Dec 2016 05:01:50 +0000 Subject: [PATCH] add project_id to missions --- db/migrate/20161228045935_add_project_id_to_mission.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20161228045935_add_project_id_to_mission.rb diff --git a/db/migrate/20161228045935_add_project_id_to_mission.rb b/db/migrate/20161228045935_add_project_id_to_mission.rb new file mode 100644 index 0000000..86c8bdf --- /dev/null +++ b/db/migrate/20161228045935_add_project_id_to_mission.rb @@ -0,0 +1,5 @@ +class AddProjectIdToMission < ActiveRecord::Migration + def change + add_column :missions, :project_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 7a740bc..ffa45ec 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: 20161227104629) do +ActiveRecord::Schema.define(version: 20161228045935) do create_table "comments", force: :cascade do |t| t.text "content" @@ -30,6 +30,7 @@ ActiveRecord::Schema.define(version: 20161227104629) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "content" + t.integer "project_id" end create_table "missions_users", id: false, force: :cascade do |t|