aboutsummaryrefslogtreecommitdiff
path: root/db/seeds.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-08 16:51:30 +0200
committerhellekin <hellekin@cepheide.org>2020-10-08 16:59:33 +0200
commit8f691b566ffbc79f1d2d7a3f67d8607cc03a789c (patch)
treefb17d5bb8b725778fe24d8c9e685467ebb48da79 /db/seeds.rb
parent46071bc467cd6d671c2cfe53ffe5d9eedcb96ae3 (diff)
downloadincommon-map-8f691b566ffbc79f1d2d7a3f67d8607cc03a789c.tar.gz
Add model foundation for classifications
Taxonomy > Category > Section This commit adds models for it. https://doc.incommon.cc/#classifications
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 3ee3a11..8a4c670 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -16,3 +16,13 @@
Agent.find_or_create_by(name: agent_name, uuid: uuid)
end
+dewey = Agent.find_by(uuid: '6347f151-6782-437c-8bae-55730672a76f') or die('Dewey Agent should be available by now!')
+
+# Create a default taxonomy
+Taxonomy.find_or_create_by(
+ name: 'Dewey Maps Taxonomy',
+ summary: 'Original taxonomy used in Belgique, Mode d\'Emploi',
+ description: '## Dewey Maps Taxonomy',
+ uuid: '2519915f-d19c-4281-b758-f5ddb889d7fa',
+ agent_id: dewey.id
+)