Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring donation sites to being active. Mea culpa. #4251

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

cielf
Copy link
Collaborator

@cielf cielf commented Apr 2, 2024

Description

Argh! The last release made all the donation sites inactive (Mea culpa.)

This sets them to all being active.

There is no problem with doing this with a broad stroke, because they were all active before the release. I'm reasonably confident that there aren't any new ones that would have been made inactive. If there are, we'll have to deal with any fallout from that. (there is no creation date on donation sites)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

I deactivated all the donation sites on my local before coding and running this migration. They are now active.
Also ran the test suite on local - all passed

@cielf cielf requested a review from dorner April 2, 2024 23:35
def up
DonationSite.all.each do |site|
site.update!(active: true)
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works no problem. FYI in the future - it's a lot faster to use update_all.

@cielf cielf merged commit 36f1d85 into rubyforgood:main Apr 4, 2024
19 checks passed
Copy link
Contributor

github-actions bot commented Apr 8, 2024

@cielf: Your PR Restoring donation sites to being active. Mea culpa. is part of today's Human Essentials production release: 2024.04.07.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants