(97.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateLocations (20140630175259)  (0.3ms) BEGIN  (14.6ms) CREATE TABLE "locations" ("id" serial primary key, "uid" character varying, "name" character varying, "corporate" boolean, "urn" character varying, "state" character varying, "city" character varying, "street_address" character varying, "postal_code" character varying, "domain" character varying, "city_slug" character varying, "phone_number" character varying, "neighborhood" character varying, "primary_amenity" character varying, "primary_landmark" character varying, "qualifier" character varying, "floor_plans" character varying, "created_at" timestamp, "updated_at" timestamp)  SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140630175259"]]  (0.7ms) COMMIT Migrating to CreateClients (20140630175330)  (0.4ms) BEGIN  (3.9ms) CREATE TABLE "clients" ("id" serial primary key, "uid" character varying, "name" character varying, "vertical" character varying, "type" character varying, "domain" character varying, "created_at" timestamp, "updated_at" timestamp)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140630175330"]]  (0.7ms) COMMIT Migrating to DropClientsAndLocations (20140709220627)  (0.3ms) BEGIN  (3.4ms) DROP TABLE "clients"  (1.0ms) DROP TABLE "locations" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140709220627"]]  (1.3ms) COMMIT Migrating to CreateG5UpdatableClientsAndLocations (20140709222005)  (0.3ms) BEGIN  (3.5ms) CREATE TABLE "g5_updatable_clients" ("id" serial primary key, "uid" character varying, "urn" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_g5_updatable_clients_on_uid" ON "g5_updatable_clients" ("uid")  (1.4ms) CREATE INDEX "index_g5_updatable_clients_on_urn" ON "g5_updatable_clients" ("urn")  (3.6ms) CREATE TABLE "g5_updatable_locations" ("id" serial primary key, "uid" character varying, "urn" character varying, "client_uid" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp)   (1.7ms) CREATE INDEX "index_g5_updatable_locations_on_uid" ON "g5_updatable_locations" ("uid")  (1.5ms) CREATE INDEX "index_g5_updatable_locations_on_urn" ON "g5_updatable_locations" ("urn") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140709222005"]]  (1.8ms) COMMIT Migrating to CreateFavoriteFoods (20140714225203)  (0.3ms) BEGIN  (3.5ms) CREATE TABLE "favorite_foods" ("id" serial primary key, "name" character varying, "location_uid" character varying, "created_at" timestamp, "updated_at" timestamp)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140714225203"]]  (0.5ms) COMMIT Migrating to CreateIntegrationSetting (20141030211945)  (0.3ms) BEGIN  (4.1ms) CREATE TABLE "g5_updatable_integration_settings" ("id" serial primary key, "uid" character varying, "urn" character varying, "location_uid" character varying, "vendor_action" character varying, "job_frequency_in_minutes" integer, "properties" json, "created_at" timestamp, "updated_at" timestamp)   (1.5ms) CREATE INDEX "index_g5_updatable_integration_settings_on_urn" ON "g5_updatable_integration_settings" ("urn")  (1.2ms) CREATE INDEX "index_g5_updatable_integration_settings_on_uid" ON "g5_updatable_integration_settings" ("uid")  (1.3ms) CREATE INDEX "index_g5_updatable_integration_settings_on_vendor_action" ON "g5_updatable_integration_settings" ("vendor_action")  (1.7ms) CREATE INDEX "g5_u_is_loc_action" ON "g5_updatable_integration_settings" ("location_uid", "vendor_action") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141030211945"]]  (0.6ms) COMMIT Migrating to RemoveIntegrationSetting (20141122211945)  (0.3ms) BEGIN  (1.3ms) DROP TABLE "g5_updatable_integration_settings" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141122211945"]]  (1.1ms) COMMIT Migrating to AddNameToClientsAndLocations (20141211211945)  (0.3ms) BEGIN  (0.4ms) ALTER TABLE "g5_updatable_clients" ADD "name" character varying  (1.5ms) CREATE INDEX "index_g5_updatable_clients_on_name" ON "g5_updatable_clients" ("name")  (0.4ms) ALTER TABLE "g5_updatable_locations" ADD "name" character varying  (1.5ms) CREATE INDEX "index_g5_updatable_locations_on_name" ON "g5_updatable_locations" ("name") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141211211945"]]  (0.8ms) COMMIT Migrating to UpdateNames (20141211711945)  (0.3ms) BEGIN G5Updatable::Client Load (0.7ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141211711945"]]  (0.5ms) COMMIT Migrating to CreateRestaurants (20141222072623)  (0.3ms) BEGIN  (3.9ms) CREATE TABLE "restaurants" ("id" serial primary key, "name" character varying, "client_uid" character varying, "created_at" timestamp, "updated_at" timestamp)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141222072623"]]  (0.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'favorite_foods' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_clients' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'g5_updatable_locations' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'restaurants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.834123"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.837267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.848530"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.849425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.855859"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.856798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.864387"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.864960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.871074"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.871864"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.878146"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.878940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.885234"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.886065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:24:57.894121"], ["updated_at", "2015-06-22 00:24:57.894121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.899866"], ["updated_at", "2015-06-22 00:24:57.899866"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.903227"], ["updated_at", "2015-06-22 00:24:57.903227"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:24:57.912333"], ["updated_at", "2015-06-22 00:24:57.912333"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.915633"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 11]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:24:57.925776"], ["updated_at", "2015-06-22 00:24:57.925776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.928808"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 12]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:24:57.936328"], ["updated_at", "2015-06-22 00:24:57.936328"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.939460"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 13]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:24:57.948554"], ["updated_at", "2015-06-22 00:24:57.948554"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:24:57.951372"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.952164"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:24:57.963131"], ["updated_at", "2015-06-22 00:24:57.963131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (1.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 00:24:57.974962"], ["id", 16]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 16]]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:27:51.664512"], ["updated_at", "2015-06-22 00:27:51.664512"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.673367"], ["updated_at", "2015-06-22 00:27:51.673367"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 00:27:51.681865"], ["id", 18]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 18]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:27:51.694579"], ["updated_at", "2015-06-22 00:27:51.694579"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.697646"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 19]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:27:51.706100"], ["updated_at", "2015-06-22 00:27:51.706100"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.709177"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 20]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:27:51.717394"], ["updated_at", "2015-06-22 00:27:51.717394"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.720875"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 21]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.729028"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.729929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.736946"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.737779"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.6ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.745101"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.745975"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.752512"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.753457"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.760078"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.760971"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.767803"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.768647"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.776318"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.777177"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 00:27:51.784166"], ["updated_at", "2015-06-22 00:27:51.784166"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 00:27:51.787061"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.787813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 29]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.797563"], ["updated_at", "2015-06-22 00:27:51.797563"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 00:27:51.809584"], ["updated_at", "2015-06-22 00:27:51.809584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 31]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (1.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.6ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.9ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.8ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:29:24.367946"], ["updated_at", "2015-06-22 01:29:24.367946"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:29:24.377650"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 33]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:00.548557"], ["updated_at", "2015-06-22 01:30:00.548557"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:00.558272"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 34]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.716572"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.719110"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (1.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.730671"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.731590"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.739276"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.740318"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.746940"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.747773"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.755648"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.756573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.764318"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.764992"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.770908"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.771950"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:04.779059"], ["updated_at", "2015-06-22 01:30:04.779059"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.782283"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 42]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:04.791265"], ["updated_at", "2015-06-22 01:30:04.791265"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.794221"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 43]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:04.803277"], ["updated_at", "2015-06-22 01:30:04.803277"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.806296"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 44]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.814936"], ["updated_at", "2015-06-22 01:30:04.814936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.818131"], ["updated_at", "2015-06-22 01:30:04.818131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 45]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:04.827396"], ["updated_at", "2015-06-22 01:30:04.827396"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.830934"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 47]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.839027"], ["updated_at", "2015-06-22 01:30:04.839027"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 01:30:04.853537"], ["id", 48]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 48]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:30:04.861637"], ["updated_at", "2015-06-22 01:30:04.861637"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:30:04.864448"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:30:04.864942"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 49]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.136632"], ["updated_at", "2015-06-22 01:32:31.136632"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.146619"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 51]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.162175"], ["updated_at", "2015-06-22 01:32:31.162175"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.165351"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 52]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.175039"], ["updated_at", "2015-06-22 01:32:31.175039"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.178324"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 53]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.187600"], ["updated_at", "2015-06-22 01:32:31.187600"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.191111"], ["updated_at", "2015-06-22 01:32:31.191111"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 54]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.211366"], ["updated_at", "2015-06-22 01:32:31.211366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.214411"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.215212"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 56]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.226931"], ["updated_at", "2015-06-22 01:32:31.226931"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.230603"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 58]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.237404"], ["updated_at", "2015-06-22 01:32:31.237404"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 01:32:31.241440"], ["id", 59]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 59]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.249894"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.250720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.258140"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.259119"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.266966"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.267917"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.274103"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.275025"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.281576"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.282367"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.289301"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.290197"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:32:31.298606"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:32:31.299475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.322329"], ["updated_at", "2015-06-22 01:32:31.322329"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.334015"], ["updated_at", "2015-06-22 01:32:31.334015"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.337530"], ["updated_at", "2015-06-22 01:32:31.337530"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.340600"], ["updated_at", "2015-06-22 01:32:31.340600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.345469"], ["updated_at", "2015-06-22 01:32:31.345469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.358820"], ["updated_at", "2015-06-22 01:32:31.358820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.361490"], ["updated_at", "2015-06-22 01:32:31.361490"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.364238"], ["updated_at", "2015-06-22 01:32:31.364238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.366521"], ["updated_at", "2015-06-22 01:32:31.366521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.369383"], ["updated_at", "2015-06-22 01:32:31.369383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 24ms (Views: 11.3ms | ActiveRecord: 0.9ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.414928"], ["updated_at", "2015-06-22 01:32:31.414928"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:32:31.419943"], ["id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.425908"], ["updated_at", "2015-06-22 01:32:31.425908"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:32:31.429622"], ["id", 6]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.435599"], ["updated_at", "2015-06-22 01:32:31.435599"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:32:31.439742"], ["id", 7]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (1.0ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.449322"], ["updated_at", "2015-06-22 01:32:31.449322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.455694"], ["updated_at", "2015-06-22 01:32:31.455694"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.463026"], ["updated_at", "2015-06-22 01:32:31.463026"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.469018"], ["updated_at", "2015-06-22 01:32:31.469018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.476355"], ["updated_at", "2015-06-22 01:32:31.476355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:32:31.517271"], ["updated_at", "2015-06-22 01:32:31.517271"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:32:31.528573"], ["updated_at", "2015-06-22 01:32:31.528573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 14]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.534673"], ["updated_at", "2015-06-22 01:32:31.534673"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.537956"], ["updated_at", "2015-06-22 01:32:31.537956"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.563918"], ["updated_at", "2015-06-22 01:32:31.563918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.573569"], ["updated_at", "2015-06-22 01:32:31.573569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:32:31.596628"], ["updated_at", "2015-06-22 01:32:31.596628"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 76]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.602291"], ["updated_at", "2015-06-22 01:32:31.602291"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.606148"], ["updated_at", "2015-06-22 01:32:31.606148"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.612971"], ["updated_at", "2015-06-22 01:32:31.612971"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:32:31.619041"], ["updated_at", "2015-06-22 01:32:31.619041"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.622105"], ["updated_at", "2015-06-22 01:32:31.622105"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.628112"], ["updated_at", "2015-06-22 01:32:31.628112"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.631418"], ["updated_at", "2015-06-22 01:32:31.631418"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.637230"], ["updated_at", "2015-06-22 01:32:31.637230"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.640171"], ["updated_at", "2015-06-22 01:32:31.640171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.647262"], ["updated_at", "2015-06-22 01:32:31.647262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:32:31.651859"], ["updated_at", "2015-06-22 01:32:31.651859"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.684028"], ["updated_at", "2015-06-22 01:44:37.684028"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.7ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.696676"], ["updated_at", "2015-06-22 01:44:37.696676"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.704322"], ["updated_at", "2015-06-22 01:44:37.704322"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.710163"], ["updated_at", "2015-06-22 01:44:37.710163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.716584"], ["updated_at", "2015-06-22 01:44:37.716584"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:44:37.724867"], ["updated_at", "2015-06-22 01:44:37.724867"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:37.730905"], ["updated_at", "2015-06-22 01:44:37.730905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:44:37.735107"], ["id", 24]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:37.742828"], ["updated_at", "2015-06-22 01:44:37.742828"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:44:37.746601"], ["id", 25]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:37.753296"], ["updated_at", "2015-06-22 01:44:37.753296"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:44:37.757247"], ["id", 26]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.812200"], ["updated_at", "2015-06-22 01:44:37.812200"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.817660"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 86]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.827631"], ["updated_at", "2015-06-22 01:44:37.827631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 01:44:37.831899"], ["id", 87]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 87]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.839754"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.840562"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.848379"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.849275"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.856302"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.857263"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.863572"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.864358"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.870980"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.871906"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.878546"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.879413"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.886272"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.887127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.894419"], ["updated_at", "2015-06-22 01:44:37.894419"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.897495"], ["updated_at", "2015-06-22 01:44:37.897495"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 95]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.907291"], ["updated_at", "2015-06-22 01:44:37.907291"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.910041"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:44:37.910740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 97]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.919563"], ["updated_at", "2015-06-22 01:44:37.919563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.922317"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 99]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.930000"], ["updated_at", "2015-06-22 01:44:37.930000"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.932863"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 100]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.941217"], ["updated_at", "2015-06-22 01:44:37.941217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:44:37.944087"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 101]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.954664"], ["updated_at", "2015-06-22 01:44:37.954664"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.966587"], ["updated_at", "2015-06-22 01:44:37.966587"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:37.974665"], ["updated_at", "2015-06-22 01:44:37.974665"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.983415"], ["updated_at", "2015-06-22 01:44:37.983415"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.986736"], ["updated_at", "2015-06-22 01:44:37.986736"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:37.989182"], ["updated_at", "2015-06-22 01:44:37.989182"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:37.992206"], ["updated_at", "2015-06-22 01:44:37.992206"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:38.014448"], ["updated_at", "2015-06-22 01:44:38.014448"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.053636"], ["updated_at", "2015-06-22 01:44:38.053636"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.057217"], ["updated_at", "2015-06-22 01:44:38.057217"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:38.059730"], ["updated_at", "2015-06-22 01:44:38.059730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.062690"], ["updated_at", "2015-06-22 01:44:38.062690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:38.074428"], ["updated_at", "2015-06-22 01:44:38.074428"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.077600"], ["updated_at", "2015-06-22 01:44:38.077600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:44:38.101603"], ["updated_at", "2015-06-22 01:44:38.101603"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 32]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.148061"], ["updated_at", "2015-06-22 01:44:38.148061"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.151819"], ["updated_at", "2015-06-22 01:44:38.151819"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.157380"], ["updated_at", "2015-06-22 01:44:38.157380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.160226"], ["updated_at", "2015-06-22 01:44:38.160226"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.165617"], ["updated_at", "2015-06-22 01:44:38.165617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.168724"], ["updated_at", "2015-06-22 01:44:38.168724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:38.175735"], ["updated_at", "2015-06-22 01:44:38.175735"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.178862"], ["updated_at", "2015-06-22 01:44:38.178862"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:44:38.184819"], ["updated_at", "2015-06-22 01:44:38.184819"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.187849"], ["updated_at", "2015-06-22 01:44:38.187849"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:44:38.194004"], ["updated_at", "2015-06-22 01:44:38.194004"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:44:38.221913"], ["updated_at", "2015-06-22 01:44:38.221913"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 120]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.356531"], ["updated_at", "2015-06-22 01:45:03.356531"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.375961"], ["updated_at", "2015-06-22 01:45:03.375961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.392063"], ["updated_at", "2015-06-22 01:45:03.392063"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.401336"], ["updated_at", "2015-06-22 01:45:03.401336"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.414866"], ["updated_at", "2015-06-22 01:45:03.414866"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.418250"], ["updated_at", "2015-06-22 01:45:03.418250"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.421098"], ["updated_at", "2015-06-22 01:45:03.421098"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 13ms (Views: 1.5ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.442250"], ["updated_at", "2015-06-22 01:45:03.442250"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.445788"], ["updated_at", "2015-06-22 01:45:03.445788"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.448947"], ["updated_at", "2015-06-22 01:45:03.448947"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.451567"], ["updated_at", "2015-06-22 01:45:03.451567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.454185"], ["updated_at", "2015-06-22 01:45:03.454185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.487003"], ["updated_at", "2015-06-22 01:45:03.487003"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.494105"], ["updated_at", "2015-06-22 01:45:03.494105"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.500439"], ["updated_at", "2015-06-22 01:45:03.500439"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.508014"], ["updated_at", "2015-06-22 01:45:03.508014"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.514372"], ["updated_at", "2015-06-22 01:45:03.514372"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:03.522088"], ["updated_at", "2015-06-22 01:45:03.522088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.528193"], ["updated_at", "2015-06-22 01:45:03.528193"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (1.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:03.532634"], ["id", 45]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.539602"], ["updated_at", "2015-06-22 01:45:03.539602"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:03.542961"], ["id", 46]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.548552"], ["updated_at", "2015-06-22 01:45:03.548552"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:03.552757"], ["id", 47]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.559223"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.560091"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.568204"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.569783"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.577793"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.578616"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.587122"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.588007"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.595198"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.596143"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.602825"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.603701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.612341"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.613968"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.620310"], ["updated_at", "2015-06-22 01:45:03.620310"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.623137"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 136]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.630982"], ["updated_at", "2015-06-22 01:45:03.630982"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.634009"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 137]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.643576"], ["updated_at", "2015-06-22 01:45:03.643576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.646702"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 138]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.654700"], ["updated_at", "2015-06-22 01:45:03.654700"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 01:45:03.658397"], ["id", 139]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 139]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.667090"], ["updated_at", "2015-06-22 01:45:03.667090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.670579"], ["updated_at", "2015-06-22 01:45:03.670579"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 140]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.717497"], ["updated_at", "2015-06-22 01:45:03.717497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.720105"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:03.720847"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 142]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.730515"], ["updated_at", "2015-06-22 01:45:03.730515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:03.734177"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 144]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:45:03.770753"], ["updated_at", "2015-06-22 01:45:03.770753"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 48]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.783203"], ["updated_at", "2015-06-22 01:45:03.783203"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.786169"], ["updated_at", "2015-06-22 01:45:03.786169"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:45:03.810817"], ["updated_at", "2015-06-22 01:45:03.810817"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 146]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.823368"], ["updated_at", "2015-06-22 01:45:03.823368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.826541"], ["updated_at", "2015-06-22 01:45:03.826541"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:03.833315"], ["updated_at", "2015-06-22 01:45:03.833315"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.836345"], ["updated_at", "2015-06-22 01:45:03.836345"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.8ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.842658"], ["updated_at", "2015-06-22 01:45:03.842658"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.848130"], ["updated_at", "2015-06-22 01:45:03.848130"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.852373"], ["updated_at", "2015-06-22 01:45:03.852373"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.857315"], ["updated_at", "2015-06-22 01:45:03.857315"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.860116"], ["updated_at", "2015-06-22 01:45:03.860116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.865202"], ["updated_at", "2015-06-22 01:45:03.865202"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:03.868176"], ["updated_at", "2015-06-22 01:45:03.868176"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.035089"], ["updated_at", "2015-06-22 01:45:15.035089"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.053787"], ["updated_at", "2015-06-22 01:45:15.053787"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.069652"], ["updated_at", "2015-06-22 01:45:15.069652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.077719"], ["updated_at", "2015-06-22 01:45:15.077719"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.092094"], ["updated_at", "2015-06-22 01:45:15.092094"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.095613"], ["updated_at", "2015-06-22 01:45:15.095613"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.100246"], ["updated_at", "2015-06-22 01:45:15.100246"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 0.9ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.120002"], ["updated_at", "2015-06-22 01:45:15.120002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.123463"], ["updated_at", "2015-06-22 01:45:15.123463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.127226"], ["updated_at", "2015-06-22 01:45:15.127226"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.130319"], ["updated_at", "2015-06-22 01:45:15.130319"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.133396"], ["updated_at", "2015-06-22 01:45:15.133396"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.165711"], ["updated_at", "2015-06-22 01:45:15.165711"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.172240"], ["updated_at", "2015-06-22 01:45:15.172240"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (1.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.179152"], ["updated_at", "2015-06-22 01:45:15.179152"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.186669"], ["updated_at", "2015-06-22 01:45:15.186669"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.192425"], ["updated_at", "2015-06-22 01:45:15.192425"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-22 01:45:15.199779"], ["updated_at", "2015-06-22 01:45:15.199779"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.204855"], ["updated_at", "2015-06-22 01:45:15.204855"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.8ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:15.208696"], ["id", 62]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.215793"], ["updated_at", "2015-06-22 01:45:15.215793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:15.219495"], ["id", 63]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.224937"], ["updated_at", "2015-06-22 01:45:15.224937"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-22 01:45:15.228581"], ["id", 64]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.235181"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.236130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.244032"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.244871"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.252521"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.253166"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.260541"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.261228"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.267339"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.268375"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.275951"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.276887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.283076"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.283926"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.290990"], ["updated_at", "2015-06-22 01:45:15.290990"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.293862"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 171]]  (0.8ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.302091"], ["updated_at", "2015-06-22 01:45:15.302091"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.304938"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 172]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.312671"], ["updated_at", "2015-06-22 01:45:15.312671"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.316043"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 173]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.324448"], ["updated_at", "2015-06-22 01:45:15.324448"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-22 01:45:15.330572"], ["id", 174]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 174]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.342809"], ["updated_at", "2015-06-22 01:45:15.342809"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.346474"], ["updated_at", "2015-06-22 01:45:15.346474"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 175]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.391824"], ["updated_at", "2015-06-22 01:45:15.391824"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.395186"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-22 01:45:15.395993"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 177]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.405452"], ["updated_at", "2015-06-22 01:45:15.405452"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-22 01:45:15.409303"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 179]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:45:15.446661"], ["updated_at", "2015-06-22 01:45:15.446661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 65]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.459120"], ["updated_at", "2015-06-22 01:45:15.459120"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.462221"], ["updated_at", "2015-06-22 01:45:15.462221"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-22 01:45:15.491210"], ["updated_at", "2015-06-22 01:45:15.491210"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 181]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.503659"], ["updated_at", "2015-06-22 01:45:15.503659"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.506887"], ["updated_at", "2015-06-22 01:45:15.506887"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-22 01:45:15.513556"], ["updated_at", "2015-06-22 01:45:15.513556"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.516392"], ["updated_at", "2015-06-22 01:45:15.516392"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.523458"], ["updated_at", "2015-06-22 01:45:15.523458"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.528879"], ["updated_at", "2015-06-22 01:45:15.528879"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.531989"], ["updated_at", "2015-06-22 01:45:15.531989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.537458"], ["updated_at", "2015-06-22 01:45:15.537458"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.540610"], ["updated_at", "2015-06-22 01:45:15.540610"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.547770"], ["updated_at", "2015-06-22 01:45:15.547770"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-22 01:45:15.550954"], ["updated_at", "2015-06-22 01:45:15.550954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.095344"], ["updated_at", "2015-06-25 04:17:24.095344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.103588"], ["updated_at", "2015-06-25 04:17:24.103588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 191]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:17:24.121149"], ["updated_at", "2015-06-25 04:17:24.121149"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.127026"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.128013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 193]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.6ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.141547"], ["updated_at", "2015-06-25 04:17:24.141547"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-25 04:17:24.147283"], ["id", 195]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 195]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.156273"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.157372"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.164792"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.165766"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.174912"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.176074"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.183695"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.184464"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.191963"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.192863"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (1.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.201386"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.202261"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.210511"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.212473"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:17:24.219369"], ["updated_at", "2015-06-25 04:17:24.219369"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.224008"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 203]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:17:24.232963"], ["updated_at", "2015-06-25 04:17:24.232963"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.9ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.236697"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 204]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:17:24.246962"], ["updated_at", "2015-06-25 04:17:24.246962"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.261074"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 205]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:17:24.269435"], ["updated_at", "2015-06-25 04:17:24.269435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.272850"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 206]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:17:24.286276"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:17:24.287261"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:31.304073"], ["updated_at", "2015-06-25 04:18:31.304073"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.316029"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 208]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:31.330096"], ["updated_at", "2015-06-25 04:18:31.330096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.333288"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 209]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:31.342252"], ["updated_at", "2015-06-25 04:18:31.342252"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.345635"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 210]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:31.353228"], ["updated_at", "2015-06-25 04:18:31.353228"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.356831"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.358085"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 211]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.369847"], ["updated_at", "2015-06-25 04:18:31.369847"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-25 04:18:31.376431"], ["id", 213]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 213]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.385257"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.386135"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.393519"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.394579"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.403255"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.404095"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.413003"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.413934"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.420572"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.421446"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.8ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (1.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.431092"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.432124"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.440037"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.441090"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.449418"], ["updated_at", "2015-06-25 04:18:31.449418"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.462894"], ["updated_at", "2015-06-25 04:18:31.462894"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 221]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:31.472726"], ["updated_at", "2015-06-25 04:18:31.472726"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.480368"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 223]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:31.491036"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:31.492291"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.584360"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.587034"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.599593"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.600488"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.4ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.609799"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.610769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.618278"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.619082"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.626859"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.627793"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.634249"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.635010"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.6ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.644176"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.645277"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:55.652856"], ["updated_at", "2015-06-25 04:18:55.652856"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.8ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.656871"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.658543"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 232]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:55.669733"], ["updated_at", "2015-06-25 04:18:55.669733"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.673326"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 234]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:55.683645"], ["updated_at", "2015-06-25 04:18:55.683645"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.686826"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 235]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:55.697802"], ["updated_at", "2015-06-25 04:18:55.697802"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.701062"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 236]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.711958"], ["updated_at", "2015-06-25 04:18:55.711958"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-25 04:18:55.717123"], ["id", 237]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 237]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 04:18:55.728251"], ["updated_at", "2015-06-25 04:18:55.728251"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.732753"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 238]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.752674"], ["updated_at", "2015-06-25 04:18:55.752674"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.756465"], ["updated_at", "2015-06-25 04:18:55.756465"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 239]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 04:18:55.772409"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 04:18:55.773509"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.857936"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.861608"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.6ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.884184"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.885260"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.892108"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.893051"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.900727"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.901704"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.908748"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.909631"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:51.919912"], ["updated_at", "2015-06-25 05:35:51.919912"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:51.938128"], ["updated_at", "2015-06-25 05:35:51.938128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 69]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 247]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.945442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.946315"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (1.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.953447"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.954421"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.960545"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.961368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.968961"], ["updated_at", "2015-06-25 05:35:51.968961"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.971524"], ["updated_at", "2015-06-25 05:35:51.971524"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 251]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:51.980467"], ["updated_at", "2015-06-25 05:35:51.980467"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.984879"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:51.986232"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 253]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:51.995499"], ["updated_at", "2015-06-25 05:35:51.995499"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:51.998313"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 255]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.5ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.007957"], ["updated_at", "2015-06-25 05:35:52.007957"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:52.010959"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 256]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.021392"], ["updated_at", "2015-06-25 05:35:52.021392"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:52.024480"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 257]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.031632"], ["updated_at", "2015-06-25 05:35:52.031632"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:52.034952"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 258]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.040670"], ["updated_at", "2015-06-25 05:35:52.040670"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.044711"], ["updated_at", "2015-06-25 05:35:52.044711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 70]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 259]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.051470"], ["updated_at", "2015-06-25 05:35:52.051470"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:52.056233"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 260]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:52.063612"], ["updated_at", "2015-06-25 05:35:52.063612"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-25 05:35:52.068501"], ["id", 261]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 261]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:52.076952"], ["updated_at", "2015-06-25 05:35:52.076952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-25 05:35:52.080672"], ["id", 262]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.086594"], ["updated_at", "2015-06-25 05:35:52.086594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.089687"], ["updated_at", "2015-06-25 05:35:52.089687"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 71]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 263]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-25 05:35:52.096926"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-25 05:35:52.098008"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.111036"], ["updated_at", "2015-06-25 05:35:52.111036"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.123433"], ["updated_at", "2015-06-25 05:35:52.123433"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.126683"], ["updated_at", "2015-06-25 05:35:52.126683"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.129072"], ["updated_at", "2015-06-25 05:35:52.129072"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.132223"], ["updated_at", "2015-06-25 05:35:52.132223"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.145276"], ["updated_at", "2015-06-25 05:35:52.145276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.148511"], ["updated_at", "2015-06-25 05:35:52.148511"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.153215"], ["updated_at", "2015-06-25 05:35:52.153215"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.156681"], ["updated_at", "2015-06-25 05:35:52.156681"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.159900"], ["updated_at", "2015-06-25 05:35:52.159900"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.6ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 65ms (Views: 11.5ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.251106"], ["updated_at", "2015-06-25 05:35:52.251106"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.255096"], ["updated_at", "2015-06-25 05:35:52.255096"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-25 05:35:52.266803"], ["updated_at", "2015-06-25 05:35:52.266803"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 77]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.296814"], ["updated_at", "2015-06-25 05:35:52.296814"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.299777"], ["updated_at", "2015-06-25 05:35:52.299777"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.0ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.306929"], ["updated_at", "2015-06-25 05:35:52.306929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.309632"], ["updated_at", "2015-06-25 05:35:52.309632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.314905"], ["updated_at", "2015-06-25 05:35:52.314905"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.318239"], ["updated_at", "2015-06-25 05:35:52.318239"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.326076"], ["updated_at", "2015-06-25 05:35:52.326076"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.329090"], ["updated_at", "2015-06-25 05:35:52.329090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.336620"], ["updated_at", "2015-06-25 05:35:52.336620"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.342764"], ["updated_at", "2015-06-25 05:35:52.342764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.345637"], ["updated_at", "2015-06-25 05:35:52.345637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-25 05:35:52.358034"], ["updated_at", "2015-06-25 05:35:52.358034"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 281]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.366110"], ["updated_at", "2015-06-25 05:35:52.366110"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-25 05:35:52.376844"], ["updated_at", "2015-06-25 05:35:52.376844"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.410062"], ["updated_at", "2015-06-25 05:35:52.410062"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-25 05:35:52.414626"], ["id", 80]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.421370"], ["updated_at", "2015-06-25 05:35:52.421370"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-25 05:35:52.425421"], ["id", 81]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-25 05:35:52.431366"], ["updated_at", "2015-06-25 05:35:52.431366"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.8ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-25 05:35:52.437790"], ["id", 82]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.444984"], ["updated_at", "2015-06-25 05:35:52.444984"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.450854"], ["updated_at", "2015-06-25 05:35:52.450854"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.458717"], ["updated_at", "2015-06-25 05:35:52.458717"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.466590"], ["updated_at", "2015-06-25 05:35:52.466590"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.474743"], ["updated_at", "2015-06-25 05:35:52.474743"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-25 05:35:52.481482"], ["updated_at", "2015-06-25 05:35:52.481482"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (38.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (59.7ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.067637"], ["updated_at", "2015-07-22 02:26:57.067637"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.168037"], ["id", 89]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (14.7ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.5ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.203445"], ["updated_at", "2015-07-22 02:26:57.203445"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.207506"], ["id", 90]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.213805"], ["updated_at", "2015-07-22 02:26:57.213805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.217715"], ["id", 91]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.224252"], ["updated_at", "2015-07-22 02:26:57.224252"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.230464"], ["updated_at", "2015-07-22 02:26:57.230464"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.237409"], ["updated_at", "2015-07-22 02:26:57.237409"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.247933"], ["updated_at", "2015-07-22 02:26:57.247933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.255841"], ["updated_at", "2015-07-22 02:26:57.255841"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-07-22 02:26:57.273566"], ["updated_at", "2015-07-22 02:26:57.273566"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-07-22 02:26:57.312737"], ["updated_at", "2015-07-22 02:26:57.312737"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 98]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.338314"], ["updated_at", "2015-07-22 02:26:57.338314"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (15.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.347464"], ["updated_at", "2015-07-22 02:26:57.347464"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.440529"], ["updated_at", "2015-07-22 02:26:57.440529"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.447462"], ["updated_at", "2015-07-22 02:26:57.447462"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.450569"], ["updated_at", "2015-07-22 02:26:57.450569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.453208"], ["updated_at", "2015-07-22 02:26:57.453208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.455863"], ["updated_at", "2015-07-22 02:26:57.455863"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"xxx"} G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.467495"], ["updated_at", "2015-07-22 02:26:57.467495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.470840"], ["updated_at", "2015-07-22 02:26:57.470840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.473622"], ["updated_at", "2015-07-22 02:26:57.473622"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.475831"], ["updated_at", "2015-07-22 02:26:57.475831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.478626"], ["updated_at", "2015-07-22 02:26:57.478626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::SyncsController#index as HTML Parameters: {"urn"=>"g5-c-1234-client"} G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]] Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.518378"], ["updated_at", "2015-07-22 02:26:57.518378"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.522019"], ["updated_at", "2015-07-22 02:26:57.522019"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.529275"], ["updated_at", "2015-07-22 02:26:57.529275"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.534844"], ["updated_at", "2015-07-22 02:26:57.534844"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.537821"], ["updated_at", "2015-07-22 02:26:57.537821"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-07-22 02:26:57.547422"], ["updated_at", "2015-07-22 02:26:57.547422"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 294]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.575329"], ["updated_at", "2015-07-22 02:26:57.575329"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.612254"], ["updated_at", "2015-07-22 02:26:57.612254"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.617900"], ["updated_at", "2015-07-22 02:26:57.617900"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.620927"], ["updated_at", "2015-07-22 02:26:57.620927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.626796"], ["updated_at", "2015-07-22 02:26:57.626796"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.629861"], ["updated_at", "2015-07-22 02:26:57.629861"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.638613"], ["updated_at", "2015-07-22 02:26:57.638613"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.647509"], ["updated_at", "2015-07-22 02:26:57.647509"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by G5Updatable::LocationsController#show as HTML Parameters: {"urn"=>"g5-cl-1234-location"} G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.655950"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.656956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.670168"], ["updated_at", "2015-07-22 02:26:57.670168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.673926"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 304]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.681854"], ["updated_at", "2015-07-22 02:26:57.681854"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.684855"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 305]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.693894"], ["updated_at", "2015-07-22 02:26:57.693894"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.697881"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 306]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.707142"], ["updated_at", "2015-07-22 02:26:57.707142"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (1.9ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.710251"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 307]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.716721"], ["updated_at", "2015-07-22 02:26:57.716721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.719236"], ["updated_at", "2015-07-22 02:26:57.719236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 106]] G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 308]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.724860"], ["updated_at", "2015-07-22 02:26:57.724860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.727698"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.728582"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (1.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 309]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.739368"], ["updated_at", "2015-07-22 02:26:57.739368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.742384"], ["updated_at", "2015-07-22 02:26:57.742384"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 311]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.752913"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.753852"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.760829"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.761796"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"  (0.3ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.768077"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.768954"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.776992"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.777921"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.785385"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.786247"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.792255"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.793186"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.799218"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.800031"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.804074"], ["updated_at", "2015-07-22 02:26:57.804074"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.806857"], ["updated_at", "2015-07-22 02:26:57.806857"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 107]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 320]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.813361"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.814207"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.820938"], ["updated_at", "2015-07-22 02:26:57.820938"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-07-22 02:26:57.825267"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 322]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.834773"], ["updated_at", "2015-07-22 02:26:57.834773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-07-22 02:26:57.840208"], ["id", 323]]  (0.2ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]] G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 323]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.847855"], ["updated_at", "2015-07-22 02:26:57.847855"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1 G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-07-22 02:26:57.852612"], ["id", 324]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.856947"], ["updated_at", "2015-07-22 02:26:57.856947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.859427"], ["updated_at", "2015-07-22 02:26:57.859427"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 108]] G5Updatable::Location Load (1.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 325]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK