Latest updates

This commit is contained in:
2022-04-07 12:45:09 +01:00
parent 557b43c911
commit 21b42c69a5
25 changed files with 412 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
class Company < ApplicationRecord
has_many :cafs
has_and_belongs_to_many :users
validates :name, presence: true
validates :name, uniqueness: true