Add Leafcutter addon
This commit is contained in:
parent
4498cc95f6
commit
0190ccdfd3
8 changed files with 92 additions and 5207 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# create core Leafcutter tags
|
||||
class LeafcutterTags1 < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
Tag::Item.create(name: 'example_group:example_tag')
|
||||
end
|
||||
|
||||
def self.down
|
||||
t = Tag::Item.find_by(name: 'example_group:example_tag')
|
||||
return if t.nil?
|
||||
|
||||
t.destroy
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue