allows unfeasible emails only to be send out once

This commit is contained in:
rgarcia
2016-03-28 18:06:43 +02:00
parent 8a8f062398
commit 467c06c3ca
6 changed files with 45 additions and 14 deletions

View File

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