When we added the new registration acceptance columns, they were defaulted to false without backfilling existing users. This means that they fail validation and cannot transition state.
This rake task should ensure that every user that has signed up has the new acceptance columns set to true.
Test process
Authenticate as a user but do not sign up
Update the user to have terms_acceptance=true and state=registered in the database
Observe the user has not accepted the quality/disqualify acceptance
Run the rake taks rake users:backfill_acceptance
Observe the user has now accepted the quality/disqualify acceptance
Requirements to merge
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code in hard-to-understand areas
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
When we added the new registration acceptance columns, they were defaulted to false without backfilling existing users. This means that they fail validation and cannot transition state.
This rake task should ensure that every user that has signed up has the new acceptance columns set to true.
Test process
terms_acceptance=true
andstate=registered
in the databaserake users:backfill_acceptance
Requirements to merge