Slowly getting the nested controllers working
More tests required
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class Domain < ApplicationRecord
|
||||
has_many :credentials, dependent: :destroy
|
||||
has_many :virtuals, dependent: :destroy
|
||||
validates :domain, presence: true
|
||||
validates :domain, uniqueness: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user