1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 22:59:39 +02:00
Maybe/db/migrate/20241007211438_add_billing_to_families.rb
Josh Pigford 31f3ff6a16
Billing (#1269)
* Change env SELF_HOSTING_ENABLED to SELF_HOSTED

* Initial Stripe implementation

* Fix portal link

* Use webhook signatures

* Migrated to new Stripe gem conventions

Also updated resource routing

* Added faraday-multipart gem to resolve middleware notice

* Merge fix

* Merge fix

* Temporary upgrade prompt for early access

* Lint fix

* i18n fixes

* Remove catch-all rescue

* Update .env.example
2024-10-08 14:37:47 -05:00

7 lines
273 B
Ruby

class AddBillingToFamilies < ActiveRecord::Migration[7.2]
def change
add_column :families, :stripe_plan_id, :string
add_column :families, :stripe_customer_id, :string
add_column :families, :stripe_subscription_status, :string, default: "incomplete"
end
end