How to keep your ActiveRecord migrations clean
21-Jan-2019 1786
Keeping all of the changes histories may be not worth it, you really don’t need to know about every change made by your colleague who did a dozen of migrations because he could not find the best name for one of the fields in some model or switched some default values during the development process. You’d rather want to stick to the present schema of the database, but in some cases, you cannot delete old migrations just like that. But I’ve got a solution, which I would like to share with you.
How to keep your ActiveRecord migrations clean #ruby #rubydeveloper #rubyonrails #ActiveRecord #migrations #clean #activerecord https://rubyonrails.ba/link/how-to-keep-your-activerecord-migrations-clean