Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created June 26, 2011 11:40
Show Gist options
  • Save tjmcewan/1047544 to your computer and use it in GitHub Desktop.
Save tjmcewan/1047544 to your computer and use it in GitHub Desktop.
Failure/Error: Unable to find matching line from backtrace
ActiveRecord::RecordNotUnique:
Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `nodes` (`type`, `ancestry`, `parent_id`, `name`, `ancestry_depth`, `created_at`, `updated_at`, `active`, `id`) VALUES ('Team', NULL, 2, 'Team 1', 0, '2011-06-26 10:19:42', '2011-06-26 10:19:42', 1, 1)
# ./spec/support/custom.rb:18:in `setup_league_structure'
# ./spec/support/controller_macros.rb:5:in `block in login_user'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment