Use Multiple Migrations When Adding Database Constraints

Adding constraints to your application at the database level is a good idea as it provides an extra layer of quality control on top of the data powering your application.One way to do that is to add default values or constraints—like making sure a field can’t be blank. This is easy to do with Rails’ migrations. But beware….
Use Multiple Migrations When Adding Database Constraints #ruby #rubydeveloper #rubyonrails #database https://rubyonrails.ba/single/use-multiple-migrations-when-adding-database-constraints

Nezir Zahirovic

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

related articles