Set member status to sustainer upon payment
Introduces a state machine for the payment status as well. refs #213
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class UpdatePaymentStatusToPending < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
Donation.where(payment_status: nil).update_all(payment_status: "pending")
|
||||
Donation.where.not(payment_status: %w[pending processing settled]).update_all(payment_status: "pending")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user