1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00
Maybe/db/migrate/20250501172430_add_user_goals.rb
Zach Gollwitzer a51c4d2cba
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions
New onboarding, trials, Stripe integration (#2185)
* New onboarding, trials, Stripe integration

* Fix tests

* Lint fixes

* Fix subscription endpoints
2025-05-01 16:47:14 -04:00

17 lines
572 B
Ruby

class AddUserGoals < ActiveRecord::Migration[7.2]
def change
add_column :users, :goals, :text, array: true, default: []
add_column :users, :set_onboarding_preferences_at, :datetime
add_column :users, :set_onboarding_goals_at, :datetime
add_column :families, :trial_started_at, :datetime
add_column :families, :early_access, :boolean, default: false
reversible do |dir|
# All existing families are marked as early access now that we're out of alpha
dir.up do
Family.update_all(early_access: true)
end
end
end
end