From d4d16d3006325687c858aacd347a635b78529036 Mon Sep 17 00:00:00 2001 From: kikito Date: Mon, 23 May 2016 19:49:49 +0200 Subject: [PATCH] Adds responsible_name migration for investments --- ...3164449_add_responsible_name_to_budget_investments.rb | 5 +++++ db/schema.rb | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 db/migrate/20160523164449_add_responsible_name_to_budget_investments.rb diff --git a/db/migrate/20160523164449_add_responsible_name_to_budget_investments.rb b/db/migrate/20160523164449_add_responsible_name_to_budget_investments.rb new file mode 100644 index 000000000..46576d059 --- /dev/null +++ b/db/migrate/20160523164449_add_responsible_name_to_budget_investments.rb @@ -0,0 +1,5 @@ +class AddResponsibleNameToBudgetInvestments < ActiveRecord::Migration + def change + add_column :budget_investments, :responsible_name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index af15b752c..ed8e3ed58 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: 20160523150146) do +ActiveRecord::Schema.define(version: 20160523164449) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -108,16 +108,17 @@ ActiveRecord::Schema.define(version: 20160523150146) do t.integer "confidence_score", default: 0, null: false t.integer "physical_votes", default: 0 t.tsvector "tsv" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "heading_id" t.integer "budget_id" + t.string "responsible_name" end add_index "budget_investments", ["administrator_id"], name: "index_budget_investments_on_administrator_id", using: :btree add_index "budget_investments", ["author_id"], name: "index_budget_investments_on_author_id", using: :btree - add_index "budget_investments", ["heading_id"], name: "index_budget_investments_on_heading_id", using: :btree add_index "budget_investments", ["budget_id"], name: "index_budget_investments_on_budget_id", using: :btree + add_index "budget_investments", ["heading_id"], name: "index_budget_investments_on_heading_id", using: :btree add_index "budget_investments", ["tsv"], name: "index_budget_investments_on_tsv", using: :gin create_table "budget_valuator_assignments", force: :cascade do |t|