Starting to get the tests in and working
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user