Skip to content

Instantly share code, notes, and snippets.

@MMcM
Created March 29, 2013 19:56
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 MMcM/5273212 to your computer and use it in GitHub Desktop.
Save MMcM/5273212 to your computer and use it in GitHub Desktop.
Relevant log entries
Started POST "/workspaces/265/putentities.json" for 75.147.9.1 at 2013-03-29 19:53:25 +0000
Processing by WorkspacesController#putentities as JSON
Parameters: {"entities"=>"{\n \"new-entity\": {\n \"attributes\": {\n \"id\": {\n \"scalar\": \"0dc48feb-6109-414e-8db6-ee1a6d60e8b9\",\n \"type\": \"integer\",\n \"spinal_pos\": 0\n }\n },\n \"entity\": \"0a1a43b1-fe28-4bf0-8ad2-5fb2c41a62b1\"\n }\n}", "id"=>"265"}
Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 19.4ms)
Started POST "/workspaces/265/putentities.json" for 75.147.9.1 at 2013-03-29 19:53:34 +0000
Processing by WorkspacesController#putentities as JSON
Parameters: {"entities"=>"{\n \"old-entity\": {\n \"attributes\": {\n \"id\": {\n \"scalar\": \"0dc48feb-6109-414e-8db6-ee1a6d60e8b9\",\n \"type\": \"integer\",\n \"spinal_pos\": 0\n }\n },\n \"entity\": \"0a1a43b1-fe28-4bf0-8ad2-5fb2c41a62b1\"\n }\n}", "id"=>"265"}
PG::Error: ERROR: Non-unique key for index index_entities_on_workspace_id_and_name: {(long)265,"old-entity",(long)0}
: UPDATE "entities" SET "name" = 'old-entity', "updated_at" = '2013-03-29 19:53:34.491625' WHERE "entities"."id" = 728
Completed 200 OK in 101ms (Views: 0.3ms | ActiveRecord: 76.4ms)
Started POST "/workspaces/265/putentities.json" for 75.147.9.1 at 2013-03-29 19:54:12 +0000
Processing by WorkspacesController#putentities as JSON
Parameters: {"entities"=>"{\n \"old-entity\": {\n \"attributes\": {\n \"id\": {\n \"scalar\": \"0dc48feb-6109-414e-8db6-ee1a6d60e8b9\",\n \"type\": \"integer\",\n \"spinal_pos\": 0\n }\n },\n \"entity\": \"0a1a43b1-fe28-4bf0-8ad2-5fb2c41a62b1\"\n }\n}", "id"=>"265"}
PG::Error: ERROR: Non-unique key for index index_entities_on_workspace_id_and_name: {(long)265,"old-entity",(long)0}
: UPDATE "entities" SET "name" = 'old-entity', "updated_at" = '2013-03-29 19:54:12.471848' WHERE "entities"."id" = 728
Completed 200 OK in 92ms (Views: 0.3ms | ActiveRecord: 73.8ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment