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. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@@ -123,6 +123,7 @@ ActiveRecord::Schema.define(version: 20171127230716) do
t.text "description" t.text "description"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.datetime "publication_date"
end end
create_table "budget_investments", force: :cascade do |t| create_table "budget_investments", force: :cascade do |t|