Recover data from mysql backup by makaroni4

E302c3320cd14b02cbe237b479d7f884?size=52

I am quite sure that for every developer comes time when someone delete data from production database, destroy dependencies are run and it could be real disaster. I encounter that situation couple of days ago and in this post I show a simple solution for recovering lost data. More under the cut

Remove duplicates from join table by makaroni4

E302c3320cd14b02cbe237b479d7f884?size=52

I am quite sure that nowadays every #rails developer adds indexes to migrations preventing creation of duplicates and making #db queries fast. But sometimes you face old projects with a lot of duplication which is needed to be removed.

In this post I will show you some techniques to remove duplications. More under the cut