diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/agent.rb | 1 | ||||
-rw-r--r-- | app/models/resource.rb | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/models/agent.rb b/app/models/agent.rb index bb33c1b..07e0b8e 100644 --- a/app/models/agent.rb +++ b/app/models/agent.rb @@ -1,4 +1,5 @@ class Agent < ApplicationRecord has_many :agencies has_many :members, through: :agencies, source: :user + has_many :resources end diff --git a/app/models/resource.rb b/app/models/resource.rb new file mode 100644 index 0000000..ba3dd1f --- /dev/null +++ b/app/models/resource.rb @@ -0,0 +1,6 @@ +class Resource < ApplicationRecord + # Universally Unique Identifier :uuid + include UUIDParameter + + belongs_to :agent +end |