Add Budget::Investment::Status migration
This commit is contained in:
8
db/migrate/20180321180149_add_status_to_milestones.rb
Normal file
8
db/migrate/20180321180149_add_status_to_milestones.rb
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user