diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-06 16:17:44 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-06 16:21:40 +0200 |
commit | 77d78b9023106cedd81703a1c6735e9109f631bb (patch) | |
tree | 66547d568d713d1d6e01efbe80e3d10f4d9da36b /app/models/agent.rb | |
parent | 341293217aefc15a10fc81dfc1d7850f89acfb1f (diff) | |
download | incommon-map-77d78b9023106cedd81703a1c6735e9109f631bb.tar.gz |
Add Resource model
Resources will be stored as JSON, in the (GeoJSON) :feature column.
They are assigned an UUID upon creation if they don't comme with one.
They belong to an Agent.
Diffstat (limited to 'app/models/agent.rb')
-rw-r--r-- | app/models/agent.rb | 1 |
1 files changed, 1 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 |