Add Leafcutter addon

This commit is contained in:
Darren Clarke 2023-05-17 06:41:47 +00:00
parent 4498cc95f6
commit 0190ccdfd3
8 changed files with 92 additions and 5207 deletions

View file

@ -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