adds time scope to spending proposals

This commit is contained in:
Juanjo Bazán
2016-03-07 16:09:03 +01:00
parent 6929b7863d
commit 0e0ebc71d0
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddTimeScopeToSpendingProposals < ActiveRecord::Migration
def change
add_column :spending_proposals, :time_scope, :string
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: 20160305113707) do
ActiveRecord::Schema.define(version: 20160307150804) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -310,6 +310,7 @@ ActiveRecord::Schema.define(version: 20160305113707) do
t.integer "administrator_id"
t.integer "valuation_assignments_count", default: 0
t.float "price_first_year"
t.string "time_scope"
end
add_index "spending_proposals", ["author_id"], name: "index_spending_proposals_on_author_id", using: :btree