Last active
August 29, 2015 14:00
-
-
Save elliotcm/11285693 to your computer and use it in GitHub Desktop.
Devops existing specialist sector tag routes in Panopticon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpecialistSectorTagForm; attr_writer :tag; end | |
Tag.where(tag_type: 'specialist_sector').each do |tag| | |
tag_form = SpecialistSectorTagForm.new({}) | |
tag_form.tag = tag | |
tag_form.save | |
puts "Successfully saved tag #{tag.tag_id}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment