Add Budget::Investment::Status migration

This commit is contained in:
María Checa
2018-03-21 20:15:57 +01:00
committed by decabeza
parent 3e7a53b2c7
commit 7deded142f
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class AddStatusToMilestones < ActiveRecord::Migration
disable_ddl_transaction!
def change
add_column :budget_investment_milestones, :status_id, :integer
add_index :budget_investment_milestones, :status_id, algorithm: :concurrently
end
end

View File

@@ -137,8 +137,11 @@ ActiveRecord::Schema.define(version: 20180519132610) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "publication_date"
t.integer "status_id"
end
add_index "budget_investment_milestones", ["status_id"], name: "index_budget_investment_milestones_on_status_id", using: :btree
create_table "budget_investment_statuses", force: :cascade do |t|
t.string "name"
t.text "description"