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 6ec11371a3
commit 28bb32a085
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class CreateBudgetInvestmentStatuses < ActiveRecord::Migration
def change
create_table :budget_investment_statuses do |t|
t.string :name
t.text :description
t.datetime :hidden_at, index: true
t.timestamps null: false
end
end
end

View File

@@ -139,6 +139,16 @@ ActiveRecord::Schema.define(version: 20180519132610) do
t.datetime "publication_date"
end
create_table "budget_investment_statuses", force: :cascade do |t|
t.string "name"
t.text "description"
t.datetime "hidden_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "budget_investment_statuses", ["hidden_at"], name: "index_budget_investment_statuses_on_hidden_at", using: :btree
create_table "budget_investments", force: :cascade do |t|
t.integer "author_id"
t.integer "administrator_id"