adds votes to spending proposals

This commit is contained in:
rgarcia
2016-03-29 14:53:46 +02:00
parent e52004edc3
commit ed1ec1c553
18 changed files with 327 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddVotesUpToSpendingProposals < ActiveRecord::Migration
def change
add_column :spending_proposals, :cached_votes_up, :integer
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: 20160328152843) do
ActiveRecord::Schema.define(version: 20160329115418) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -312,6 +312,7 @@ ActiveRecord::Schema.define(version: 20160328152843) do
t.integer "price_first_year", limit: 8
t.string "time_scope"
t.datetime "unfeasible_email_sent_at"
t.integer "cached_votes_up"
end
add_index "spending_proposals", ["author_id"], name: "index_spending_proposals_on_author_id", using: :btree