11 lines
228 B
Ruby
11 lines
228 B
Ruby
|
|
module UpdateBillingSubscriptions
|
|
|
|
def self.activate_from_trial(np_id)
|
|
Qx.update(:billing_subscriptions)
|
|
.set(status: 'active')
|
|
.timestamps
|
|
.where('nonprofit_id=$id', id: np_id)
|
|
.execute
|
|
end
|
|
end
|