Skip to content

Instantly share code, notes, and snippets.

@elliotcm
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elliotcm/11285693 to your computer and use it in GitHub Desktop.
Save elliotcm/11285693 to your computer and use it in GitHub Desktop.
Devops existing specialist sector tag routes in Panopticon
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