diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/agency.rb | 4 | ||||
-rw-r--r-- | app/models/agent.rb | 4 | ||||
-rw-r--r-- | app/models/application_record.rb | 4 | ||||
-rw-r--r-- | app/models/category.rb | 4 | ||||
-rw-r--r-- | app/models/classification.rb | 4 | ||||
-rw-r--r-- | app/models/resource.rb | 4 | ||||
-rw-r--r-- | app/models/schemas/resource_feature_properties.json | 4 | ||||
-rw-r--r-- | app/models/section.rb | 4 | ||||
-rw-r--r-- | app/models/taxonomy.rb | 4 | ||||
-rw-r--r-- | app/models/user.rb | 4 |
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 |