Add 'publication_date' attribute to Budget::Investment::Milestone

This commit is contained in:
Angel Perez
2017-12-12 11:47:29 -04:00
parent 97f549ac10
commit c14f9be567
2 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
class AddPublicationDateToMilestones < ActiveRecord::Migration
def up
change_table :budget_investment_milestones do |t|
t.datetime :publication_date
end
end
def down
change_table :budget_investment_milestones do |t|
t.remove :publication_date
end
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20171127230716) do
ActiveRecord::Schema.define(version: 20171212154048) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -119,10 +119,11 @@ ActiveRecord::Schema.define(version: 20171127230716) do
create_table "budget_investment_milestones", force: :cascade do |t|
t.integer "investment_id"
t.string "title", limit: 80
t.string "title", limit: 80
t.text "description"
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.datetime "publication_date"
end
create_table "budget_investments", force: :cascade do |t|