aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-11-12 01:10:28 +0100
committerhellekin <hellekin@cepheide.org>2020-11-12 01:10:28 +0100
commit8d9387cf64929b6467b6ba52f22ca0aa5ed35782 (patch)
tree37533e75476680ebad4cd1d47e3e578b879726ba /app/models
parentb6aeac4d9274f17e748efb3715aa08f4b7c361f2 (diff)
parent757decefafb5d82557a8b7fa9691f94f19c3207e (diff)
downloadincommon-map-8d9387cf64929b6467b6ba52f22ca0aa5ed35782.tar.gz
Merged master
Diffstat (limited to 'app/models')
-rw-r--r--app/models/agency.rb4
-rw-r--r--app/models/agent.rb4
-rw-r--r--app/models/application_record.rb4
-rw-r--r--app/models/category.rb4
-rw-r--r--app/models/classification.rb4
-rw-r--r--app/models/resource.rb4
-rw-r--r--app/models/schemas/resource_feature_properties.json4
-rw-r--r--app/models/section.rb4
-rw-r--r--app/models/taxonomy.rb4
-rw-r--r--app/models/user.rb4
10 files changed, 40 insertions, 0 deletions
diff --git a/app/models/agency.rb b/app/models/agency.rb
index 03e6e5a..7ffe489 100644
--- a/app/models/agency.rb
+++ b/app/models/agency.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Agency < ApplicationRecord
include Bitfields
diff --git a/app/models/agent.rb b/app/models/agent.rb
index 6264ba3..28ba579 100644
--- a/app/models/agent.rb
+++ b/app/models/agent.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Agent < ApplicationRecord
has_many :agencies
has_many :members, through: :agencies, source: :user
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
index 10a4cba..81dc6c5 100644
--- a/app/models/application_record.rb
+++ b/app/models/application_record.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
diff --git a/app/models/category.rb b/app/models/category.rb
index b8c49f1..6868bf7 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Category < ApplicationRecord
belongs_to :taxonomy
has_many :sections,
diff --git a/app/models/classification.rb b/app/models/classification.rb
index c384aa7..0754054 100644
--- a/app/models/classification.rb
+++ b/app/models/classification.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Classification < ApplicationRecord
belongs_to :resource
belongs_to :section
diff --git a/app/models/resource.rb b/app/models/resource.rb
index 7d87e1a..8df106c 100644
--- a/app/models/resource.rb
+++ b/app/models/resource.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
require_dependency 'phony_rails'
class Resource < ApplicationRecord
diff --git a/app/models/schemas/resource_feature_properties.json b/app/models/schemas/resource_feature_properties.json
index 84cd6ae..888b546 100644
--- a/app/models/schemas/resource_feature_properties.json
+++ b/app/models/schemas/resource_feature_properties.json
@@ -1,3 +1,7 @@
+/**
+ * SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+ * SPDX-License-Identifier: CC-BY-SA-4.0
+**/
// JSON Schema for Resource#feature
{
"$schema": "http://json-schema.org/draft-07/schema#",
diff --git a/app/models/section.rb b/app/models/section.rb
index 7d26882..16213c7 100644
--- a/app/models/section.rb
+++ b/app/models/section.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Section < ApplicationRecord
belongs_to :category
has_one :taxonomy, through: :category
diff --git a/app/models/taxonomy.rb b/app/models/taxonomy.rb
index 0810fc0..34f65f6 100644
--- a/app/models/taxonomy.rb
+++ b/app/models/taxonomy.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class Taxonomy < ApplicationRecord
# Universally Unique Identifier :uuid
include UUIDParameter
diff --git a/app/models/user.rb b/app/models/user.rb
index f7e96a8..9b199ac 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
class User < ApplicationRecord
has_many :agencies
has_many :agents, through: :agencies, source: :agent