diff --git a/lib/discourse_dev/tag.rb b/lib/discourse_dev/tag.rb index c4c43ae..987d865 100644 --- a/lib/discourse_dev/tag.rb +++ b/lib/discourse_dev/tag.rb @@ -11,6 +11,13 @@ def initialize super(::Tag, DiscourseDev.config.tag[:count]) end + def create! + super + rescue ActiveRecord::RecordInvalid => e + # If the name is taken, try again + retry + end + def populate! return unless SiteSetting.tagging_enabled super