-
Notifications
You must be signed in to change notification settings - Fork 140
Add rake task to strip down production database dump #979
Comments
Just a thought 🤔 : in regards of what just happened at Travis CI (and what previously also happened at Gitlab) we should probably prevent this from accidentally being run in the I'd therefore suggest to add a 4th environment: |
I'm not a fan of extra envs; it's also not advised by Heroku, but I'm also not totally against it :) I've come across this Twitter thread that has some retrospective on AR meta data about the env its DB is configured for. We could test if that actually works. Or we could abort if there is a Or we could just YOLO it, knowing that the potential impact isn't as bad; we have daily DB dumps, our app is not a high traffic one and restoring prod from the recent dev dump is a matter of 10 minutes, not several hours. |
You're probably right with your YOLO-point 👍 For the Twitter thread and the check on a
or:
and it defaults to production. Anyways, was just something that came to my mind when reading the issue. I think your YOLO-point is valid and making other things obsolete ✔️ |
We have 552 users in the database without a github_id. We can probably delete those? I suppose they originate from adding a team member and using an invalid
For example: https://teams.railsgirlssummerofcode.org/community?utf8=%E2%9C%93&search=Vinh+Nguyen+Le&commit=Go |
@F3PiX good idea! Sounds like a good (late) spring cleaning |
I'll add it to the User Controller spring cleaning then 😂 . Working on it - that's where I stumbled upon it. |
#979) For real github accounts, the github_id is not nil. So if the id is nil, it is a fake account or an input error. Updated seeds with github_id
Why?
We have a staging environment whose free database tier only supports up to 10,000 rows. We occasionally need to copy the current prod DB to staging in order to QA things.
We used to flush the Teams App's DB every year but since the introduction of the
Season
concept, we don't do that anymore. This is why the DB keeps growing.What?
The list below shows how many records each ActiveRecord model has (as of April 2nd).
The text was updated successfully, but these errors were encountered: