How to add database constraint validation for table
It is not a secret, that even having validations in Ruby on Rails application models through checking the uniqueness, two separate, but identical objects, can be saved to the database. This happens in services within subsequently full of users, which can simultaneously connect to the common database and write two similar records at the same time. To avoid such coincidences and to provide yourself with this kind of errors, I decided to look for methods at ruby gems communities. http://blog.active-bridge.com/how-to-add-database-constraint-validation-for-table
Post a comment