Skip to content

Instantly share code, notes, and snippets.

@pboucher
Created April 20, 2017 22:21
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 pboucher/ad1342388cfd75f272180b69df780a65 to your computer and use it in GitHub Desktop.
Save pboucher/ad1342388cfd75f272180b69df780a65 to your computer and use it in GitHub Desktop.
Find any field called tags or sg_tags on hosted infrastructure.
DisplayColumn.find(:all, :conditions=>{:name=>'tags'}).each do |dc|
puts "Found tag field|#{ENV['RAILS_ENV']}|{#{dc.entity_type}"
end
DisplayColumn.find(:all, :conditions=>{:name=>'sg_tags'}).each do |dc|
puts "Found sg_tags field|#{ENV['RAILS_ENV']}|{#{dc.entity_type}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment