Relationships between the CAF bits now in place
Rename the type field to kind, type is reserved
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Company < ApplicationRecord
|
||||
has_many :cafs
|
||||
has_many :cafs, dependent: :destroy
|
||||
has_and_belongs_to_many :users
|
||||
validates :name, presence: true
|
||||
validates :name, uniqueness: true
|
||||
|
||||
Reference in New Issue
Block a user