Starting to get the tests in and working

This commit is contained in:
2023-01-26 19:48:25 +00:00
parent dda03a1a9a
commit d73d234465
5 changed files with 28 additions and 18 deletions

View File

@@ -1,3 +1,6 @@
class Caf < ApplicationRecord
belongs_to :company
validates :name, presence: true
validates :name, uniqueness: { scope: :company_id, message: "should be unique to the company"}
end