When we develop a new feature, it's common to add a new column that needs some validations in the model. So, we might write something like this: class Book < ApplicationRecord #... validates :barcode, presence: true end To increase the test cove...
lynnbright.com2 min read
No responses yet.