How to keep your ActiveRecord migrations clean

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 https://rubyonrails.ba/single/how-to-keep-your-activerecord-migrations-clean

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles