diff --git a/db/migrate/20160307150804_add_time_scope_to_spending_proposals.rb b/db/migrate/20160307150804_add_time_scope_to_spending_proposals.rb new file mode 100644 index 000000000..550c57061 --- /dev/null +++ b/db/migrate/20160307150804_add_time_scope_to_spending_proposals.rb @@ -0,0 +1,5 @@ +class AddTimeScopeToSpendingProposals < ActiveRecord::Migration + def change + add_column :spending_proposals, :time_scope, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index ffe2a9a8b..a95afc8da 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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