diff --git a/db/migrate/20160415150524_add_physical_votes_to_spending_proposals.rb b/db/migrate/20160415150524_add_physical_votes_to_spending_proposals.rb new file mode 100644 index 000000000..a90b1d1a7 --- /dev/null +++ b/db/migrate/20160415150524_add_physical_votes_to_spending_proposals.rb @@ -0,0 +1,5 @@ +class AddPhysicalVotesToSpendingProposals < ActiveRecord::Migration + def change + add_column :spending_proposals, :physical_votes, :integer, default: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index 6bee6d425..35d28fc78 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: 20160413122359) do +ActiveRecord::Schema.define(version: 20160415150524) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -315,6 +315,7 @@ ActiveRecord::Schema.define(version: 20160413122359) do t.integer "cached_votes_up", default: 0 t.tsvector "tsv" t.string "responsible_name", limit: 60 + t.integer "physical_votes", default: 0 end add_index "spending_proposals", ["author_id"], name: "index_spending_proposals_on_author_id", using: :btree