Use Multiple Migrations When Adding Database Constraints
25-Jan-2019 1789
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 #Multiple #Migrations #Adding #Database #Constraints #database https://www.rubyonrails.ba/link/use-multiple-migrations-when-adding-database-constraints