From 77d78b9023106cedd81703a1c6735e9109f631bb Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 16:17:44 +0200 Subject: 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. --- app/models/agent.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/agent.rb') 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 -- cgit v1.2.3