Add Budget::Investment::Status migration
This commit is contained in:
@@ -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
|
||||
10
db/schema.rb
10
db/schema.rb
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user