Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created February 12, 2014 15:41
Show Gist options
  • Save ehelms/8957868 to your computer and use it in GitHub Desktop.
Save ehelms/8957868 to your computer and use it in GitHub Desktop.
organization = Organization.find(taxonomies(:organization1))
organization.label = organization.name
organization.save!
leads to --->
ActiveRecord::RecordInvalid: Validation failed: Domains You cannot remove domains that are used by hosts., Compute resources You cannot remove compute resources that are used by hosts., Smart proxies You cannot remove smart proxies that are used by hosts., Users You cannot remove users that are used by hosts., Config templates You cannot remove config templates that are used by hosts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment