diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-08 22:10:41 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-08 22:11:03 +0200 |
commit | 31850c6ca118b7828dbaa3ad1a87dab4287718f5 (patch) | |
tree | 7c0055b939a27eb2f38f42ca17ec671aeac4c221 /app/models/section.rb | |
parent | 0ab4ac71cdfe8b7dcf768ca0b68c8ef53040f1a2 (diff) | |
download | incommon-map-31850c6ca118b7828dbaa3ad1a87dab4287718f5.tar.gz |
Add categories, sections, and import data
Diffstat (limited to 'app/models/section.rb')
-rw-r--r-- | app/models/section.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/section.rb b/app/models/section.rb index 0a1fbf2..6cfeb38 100644 --- a/app/models/section.rb +++ b/app/models/section.rb @@ -1,6 +1,7 @@ class Section < ApplicationRecord belongs_to :category has_one :taxonomy, through: :category + has_and_belongs_to_many :resources acts_as_list column: :rank, scope: :category |