g5_updatable 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f1ad84a2970a158777c3dddd905319c6941a7ec
4
- data.tar.gz: f7dfb66c97dabc144bdb29f5283ea8514d3c438f
3
+ metadata.gz: 03bbbe2a39869e50aa5f682c13e57ece6a2ecaae
4
+ data.tar.gz: d157e9bac448852de34f502ad587c89d5b50e2d3
5
5
  SHA512:
6
- metadata.gz: 8974338e02427a80f08cd9b656dd2186dce120b3c466a32f1dddba2f0567e66aeaf222a87f528c5eda1e7c607a188cd0589f2f1b725a79d0e6c35dba5663f925
7
- data.tar.gz: bed1bb15e8ef7dab5649d64918d5d444149811727e991de1fa35f99326cd429823c212d54f5b7e1e299ae363ce03e86318818207fd658bffbba1e622b1bac3b3
6
+ metadata.gz: 5078737e13d73325f43920c4f276a03655e69b8b0f5de6b6ec3d47cbed049edc506e23f6cb9f955ca6172c9a4a5823d810785e10163a161bd348050a1ee19b8d
7
+ data.tar.gz: 1c63962a14563eb4b39477c90f2ab69306224965c6a2152d8012b5a813a287a7dff332dcb31dafe8deb71fc4af3c0bd2660ad1451ea0146611f7668cdb712c31
@@ -8,7 +8,8 @@ module G5Updatable
8
8
 
9
9
  scope :by_client_uid, -> (client_uid) { where(client_uid: client_uid) }
10
10
  scope :by_urn, -> (urn) { where(urn: urn) }
11
- scope :max_updated_at, -> { maximum(:updated_at) }
11
+ scope :max_updated_at, -> { maximum(:updated_at) }
12
12
 
13
+ delegate :urn, to: :client, prefix: true, allow_nil: true
13
14
  end
14
15
  end
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -14076,3 +14076,749 @@ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.3ms)
14076
14076
   (0.1ms) ROLLBACK
14077
14077
   (0.1ms) BEGIN
14078
14078
   (0.1ms) ROLLBACK
14079
+ ActiveRecord::SchemaMigration Load (2.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
14080
+  (0.2ms) BEGIN
14081
+  (0.1ms) SAVEPOINT active_record_1
14082
+ 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/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-10 22:59:51.053909"], ["updated_at", "2015-06-10 22:59:51.053909"]]
14083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14084
+ 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"]]
14085
+  (0.1ms) SAVEPOINT active_record_1
14086
+ SQL (0.3ms) 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-10 22:59:51.064882"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1135]]
14087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14088
+ G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14089
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"
14090
+  (0.2ms) ROLLBACK
14091
+  (0.1ms) BEGIN
14092
+  (0.1ms) SAVEPOINT active_record_1
14093
+ SQL (0.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/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-10 22:59:51.075478"], ["updated_at", "2015-06-10 22:59:51.075478"]]
14094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14095
+ 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"]]
14096
+  (0.1ms) SAVEPOINT active_record_1
14097
+ SQL (0.3ms) 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-10 22:59:51.077434"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1136]]
14098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14099
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14100
+ G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14101
+  (0.1ms) ROLLBACK
14102
+  (0.1ms) BEGIN
14103
+  (0.1ms) SAVEPOINT active_record_1
14104
+ SQL (0.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/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-10 22:59:51.082707"], ["updated_at", "2015-06-10 22:59:51.082707"]]
14105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14106
+ 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"]]
14107
+  (0.1ms) SAVEPOINT active_record_1
14108
+ SQL (0.2ms) 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-10 22:59:51.084518"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1137]]
14109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14110
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14111
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14112
+  (0.1ms) ROLLBACK
14113
+  (0.1ms) BEGIN
14114
+  (0.1ms) SAVEPOINT active_record_1
14115
+ SQL (0.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/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-10 22:59:51.089011"], ["updated_at", "2015-06-10 22:59:51.089011"]]
14116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14117
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14118
+ 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"]]
14119
+  (0.1ms) SAVEPOINT active_record_1
14120
+ SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-10 22:59:51.091582"], ["id", 1138]]
14121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14122
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14123
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1138]]
14124
+  (0.1ms) ROLLBACK
14125
+  (0.1ms) BEGIN
14126
+  (0.1ms) SAVEPOINT active_record_1
14127
+ SQL (0.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/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-10 22:59:51.096247"], ["updated_at", "2015-06-10 22:59:51.096247"]]
14128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14129
+  (0.1ms) SAVEPOINT active_record_1
14130
+ SQL (0.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/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-10 22:59:51.098198"], ["updated_at", "2015-06-10 22:59:51.098198"]]
14131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14132
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
14133
+  (0.1ms) SAVEPOINT active_record_1
14134
+ SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1139]]
14135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14136
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
14137
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]
14138
+  (0.1ms) ROLLBACK
14139
+  (0.1ms) BEGIN
14140
+  (0.1ms) SAVEPOINT active_record_1
14141
+ SQL (0.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", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.103520"], ["updated_at", "2015-06-10 22:59:51.103520"]]
14142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14143
+ 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"]]
14144
+  (0.1ms) SAVEPOINT active_record_1
14145
+ SQL (0.2ms) 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-10 22:59:51.105306"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.105771"]]
14146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14147
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14148
+  (0.1ms) SAVEPOINT active_record_1
14149
+ SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1141]]
14150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14151
+  (0.2ms) 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"]]
14152
+  (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"]]
14153
+  (0.1ms) ROLLBACK
14154
+  (0.1ms) BEGIN
14155
+ 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"]]
14156
+  (0.1ms) SAVEPOINT active_record_1
14157
+ 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-10 22:59:51.111349"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.111831"]]
14158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14159
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14160
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14161
+  (0.1ms) ROLLBACK
14162
+  (0.1ms) BEGIN
14163
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14164
+  (0.1ms) SAVEPOINT active_record_1
14165
+ SQL (0.2ms) 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-10 22:59:51.115442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.115879"]]
14166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14167
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14168
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14169
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]
14170
+  (0.1ms) ROLLBACK
14171
+  (0.1ms) BEGIN
14172
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14173
+  (0.1ms) SAVEPOINT active_record_1
14174
+ SQL (0.2ms) 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-10 22:59:51.120165"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.120620"]]
14175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14176
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14177
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"
14178
+  (0.1ms) ROLLBACK
14179
+  (0.1ms) BEGIN
14180
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14181
+  (0.1ms) SAVEPOINT active_record_1
14182
+ SQL (0.2ms) 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-10 22:59:51.124439"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.124958"]]
14183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14184
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14185
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14186
+  (0.1ms) ROLLBACK
14187
+  (0.1ms) BEGIN
14188
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14189
+  (0.1ms) SAVEPOINT active_record_1
14190
+ SQL (0.2ms) 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-10 22:59:51.128725"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.129196"]]
14191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14192
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14193
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14194
+  (0.1ms) ROLLBACK
14195
+  (0.1ms) BEGIN
14196
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14197
+  (0.1ms) SAVEPOINT active_record_1
14198
+ SQL (0.2ms) 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-10 22:59:51.132821"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.133257"]]
14199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14200
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14201
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14202
+  (0.1ms) ROLLBACK
14203
+  (0.1ms) BEGIN
14204
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14205
+  (0.1ms) SAVEPOINT active_record_1
14206
+ SQL (0.2ms) 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-10 22:59:51.137088"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.137538"]]
14207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14208
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14209
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14210
+  (0.1ms) ROLLBACK
14211
+  (0.1ms) BEGIN
14212
+  (0.1ms) ROLLBACK
14213
+  (0.1ms) BEGIN
14214
+  (0.1ms) ROLLBACK
14215
+  (0.1ms) BEGIN
14216
+  (0.1ms) ROLLBACK
14217
+  (0.1ms) BEGIN
14218
+  (0.1ms) ROLLBACK
14219
+  (0.1ms) BEGIN
14220
+  (0.1ms) ROLLBACK
14221
+  (0.1ms) BEGIN
14222
+  (0.1ms) ROLLBACK
14223
+  (0.1ms) BEGIN
14224
+  (0.1ms) ROLLBACK
14225
+  (0.1ms) BEGIN
14226
+  (0.1ms) ROLLBACK
14227
+  (0.1ms) BEGIN
14228
+  (0.1ms) ROLLBACK
14229
+  (0.1ms) BEGIN
14230
+  (0.1ms) ROLLBACK
14231
+  (0.1ms) BEGIN
14232
+  (0.1ms) ROLLBACK
14233
+  (0.1ms) BEGIN
14234
+  (0.1ms) ROLLBACK
14235
+  (0.1ms) BEGIN
14236
+  (0.1ms) SAVEPOINT active_record_1
14237
+ SQL (3.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-10 22:59:51.166650"], ["updated_at", "2015-06-10 22:59:51.166650"]]
14238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14239
+  (0.1ms) SAVEPOINT active_record_1
14240
+ SQL (0.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-10 22:59:51.177998"], ["updated_at", "2015-06-10 22:59:51.177998"]]
14241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14242
+  (0.1ms) SAVEPOINT active_record_1
14243
+ SQL (0.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-10 22:59:51.180099"], ["updated_at", "2015-06-10 22:59:51.180099"]]
14244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14245
+  (0.1ms) SAVEPOINT active_record_1
14246
+ SQL (0.2ms) 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-10 22:59:51.181652"], ["updated_at", "2015-06-10 22:59:51.181652"]]
14247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14248
+  (0.1ms) SAVEPOINT active_record_1
14249
+ SQL (0.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-10 22:59:51.183699"], ["updated_at", "2015-06-10 22:59:51.183699"]]
14250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14251
+ Processing by G5Updatable::SyncsController#index as HTML
14252
+ Parameters: {"urn"=>"g5-c-1234-client"}
14253
+ 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"]]
14254
+  (0.8ms) 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"]]
14255
+ Completed 200 OK in 16ms (Views: 2.1ms | ActiveRecord: 1.4ms)
14256
+  (0.2ms) ROLLBACK
14257
+  (0.1ms) BEGIN
14258
+  (0.1ms) SAVEPOINT active_record_1
14259
+ 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-10 22:59:51.206622"], ["updated_at", "2015-06-10 22:59:51.206622"]]
14260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14261
+  (0.1ms) SAVEPOINT active_record_1
14262
+ SQL (0.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-10 22:59:51.208978"], ["updated_at", "2015-06-10 22:59:51.208978"]]
14263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14264
+  (0.1ms) SAVEPOINT active_record_1
14265
+ 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-10 22:59:51.211198"], ["updated_at", "2015-06-10 22:59:51.211198"]]
14266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14267
+  (0.1ms) SAVEPOINT active_record_1
14268
+ 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-10 22:59:51.213679"], ["updated_at", "2015-06-10 22:59:51.213679"]]
14269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14270
+  (0.1ms) SAVEPOINT active_record_1
14271
+ SQL (0.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-10 22:59:51.215960"], ["updated_at", "2015-06-10 22:59:51.215960"]]
14272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14273
+ Processing by G5Updatable::SyncsController#index as HTML
14274
+ Parameters: {"urn"=>"xxx"}
14275
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]]
14276
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
14277
+  (0.1ms) ROLLBACK
14278
+  (0.1ms) BEGIN
14279
+ 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"]]
14280
+  (0.1ms) SAVEPOINT active_record_1
14281
+ 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-10 22:59:51.222294"], ["updated_at", "2015-06-10 22:59:51.222294"]]
14282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14283
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14284
+  (0.1ms) ROLLBACK
14285
+  (0.1ms) BEGIN
14286
+ 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"]]
14287
+  (0.1ms) SAVEPOINT active_record_1
14288
+ SQL (0.2ms) 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-10 22:59:51.226544"], ["updated_at", "2015-06-10 22:59:51.226544"]]
14289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14290
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14291
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]
14292
+  (0.1ms) ROLLBACK
14293
+  (0.1ms) BEGIN
14294
+ 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"]]
14295
+  (0.1ms) SAVEPOINT active_record_1
14296
+ 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-10 22:59:51.231417"], ["updated_at", "2015-06-10 22:59:51.231417"]]
14297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14298
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"
14299
+  (0.1ms) ROLLBACK
14300
+  (0.1ms) BEGIN
14301
+ 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"]]
14302
+  (0.1ms) SAVEPOINT active_record_1
14303
+ SQL (0.2ms) 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-10 22:59:51.235279"], ["updated_at", "2015-06-10 22:59:51.235279"]]
14304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14305
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14306
+  (0.1ms) ROLLBACK
14307
+  (0.1ms) BEGIN
14308
+ 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"]]
14309
+  (0.1ms) SAVEPOINT active_record_1
14310
+ SQL (0.2ms) 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-10 22:59:51.239007"], ["updated_at", "2015-06-10 22:59:51.239007"]]
14311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14312
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14313
+  (0.1ms) ROLLBACK
14314
+  (0.1ms) BEGIN
14315
+ 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"]]
14316
+  (0.1ms) SAVEPOINT active_record_1
14317
+ 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-10 22:59:51.242859"], ["updated_at", "2015-06-10 22:59:51.242859"]]
14318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14319
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14320
+  (0.1ms) ROLLBACK
14321
+  (0.1ms) BEGIN
14322
+  (0.1ms) SAVEPOINT active_record_1
14323
+ SQL (0.2ms) 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-10 22:59:51.246531"], ["updated_at", "2015-06-10 22:59:51.246531"]]
14324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14325
+ 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"]]
14326
+  (0.1ms) SAVEPOINT active_record_1
14327
+ SQL (0.3ms) 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-10 22:59:51.248871"], ["id", 579]]
14328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14329
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"
14330
+  (0.1ms) ROLLBACK
14331
+  (0.1ms) BEGIN
14332
+  (0.1ms) SAVEPOINT active_record_1
14333
+ SQL (0.2ms) 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-10 22:59:51.252353"], ["updated_at", "2015-06-10 22:59:51.252353"]]
14334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14335
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14336
+  (0.3ms) SAVEPOINT active_record_1
14337
+ SQL (0.3ms) 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-10 22:59:51.255015"], ["id", 580]]
14338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14339
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14340
+  (0.1ms) ROLLBACK
14341
+  (0.1ms) BEGIN
14342
+  (0.1ms) SAVEPOINT active_record_1
14343
+ SQL (0.2ms) 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-10 22:59:51.258566"], ["updated_at", "2015-06-10 22:59:51.258566"]]
14344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14345
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14346
+  (0.1ms) SAVEPOINT active_record_1
14347
+ SQL (0.3ms) 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-10 22:59:51.260934"], ["id", 581]]
14348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14349
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14350
+  (0.1ms) ROLLBACK
14351
+  (0.1ms) BEGIN
14352
+  (0.1ms) SAVEPOINT active_record_1
14353
+ SQL (0.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", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 22:59:51.265144"], ["updated_at", "2015-06-10 22:59:51.265144"]]
14354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14355
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1156]]
14356
+  (0.1ms) ROLLBACK
14357
+  (0.1ms) BEGIN
14358
+  (0.1ms) ROLLBACK
14359
+  (0.1ms) BEGIN
14360
+  (0.1ms) ROLLBACK
14361
+  (0.1ms) BEGIN
14362
+  (0.1ms) ROLLBACK
14363
+  (0.1ms) BEGIN
14364
+  (0.1ms) SAVEPOINT active_record_1
14365
+ SQL (0.2ms) 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-10 22:59:51.272059"], ["updated_at", "2015-06-10 22:59:51.272059"]]
14366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14367
+  (0.1ms) SAVEPOINT active_record_1
14368
+ 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-10 22:59:51.274047"], ["updated_at", "2015-06-10 22:59:51.274047"]]
14369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14370
+ 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/clients/g5-c-1234-client"]]
14371
+  (0.1ms) ROLLBACK
14372
+  (0.1ms) BEGIN
14373
+  (0.1ms) SAVEPOINT active_record_1
14374
+ 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-10 22:59:51.278712"], ["updated_at", "2015-06-10 22:59:51.278712"]]
14375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14376
+  (0.1ms) SAVEPOINT active_record_1
14377
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.281339"], ["updated_at", "2015-06-10 22:59:51.281339"]]
14378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14379
+  (0.4ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"
14380
+  (0.1ms) ROLLBACK
14381
+  (0.1ms) BEGIN
14382
+  (0.1ms) SAVEPOINT active_record_1
14383
+ 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-10 22:59:51.285292"], ["updated_at", "2015-06-10 22:59:51.285292"]]
14384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14385
+  (0.1ms) SAVEPOINT active_record_1
14386
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.287844"], ["updated_at", "2015-06-10 22:59:51.287844"]]
14387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14388
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]
14389
+  (0.1ms) ROLLBACK
14390
+  (0.1ms) BEGIN
14391
+  (0.1ms) SAVEPOINT active_record_1
14392
+ SQL (0.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-10 22:59:51.291372"], ["updated_at", "2015-06-10 22:59:51.291372"]]
14393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14394
+  (0.1ms) SAVEPOINT active_record_1
14395
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.293205"], ["updated_at", "2015-06-10 22:59:51.293205"]]
14396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14397
+ G5Updatable::Location Load (0.2ms) 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"]]
14398
+  (0.1ms) ROLLBACK
14399
+  (0.1ms) BEGIN
14400
+  (0.1ms) ROLLBACK
14401
+  (0.1ms) BEGIN
14402
+  (0.1ms) ROLLBACK
14403
+  (0.1ms) BEGIN
14404
+  (0.1ms) ROLLBACK
14405
+  (0.1ms) BEGIN
14406
+  (0.1ms) ROLLBACK
14407
+  (0.1ms) BEGIN
14408
+  (0.1ms) SAVEPOINT active_record_1
14409
+ SQL (0.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-10 22:59:51.325680"], ["updated_at", "2015-06-10 22:59:51.325680"]]
14410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14411
+ Processing by G5Updatable::LocationsController#show as HTML
14412
+ Parameters: {"urn"=>"g5-cl-1234-location"}
14413
+ 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"]]
14414
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
14415
+  (0.3ms) ROLLBACK
14416
+  (0.1ms) BEGIN
14417
+  (0.1ms) SAVEPOINT active_record_1
14418
+ 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-10 22:59:51.332724"], ["updated_at", "2015-06-10 22:59:51.332724"]]
14419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14420
+ Processing by G5Updatable::LocationsController#show as HTML
14421
+ Parameters: {"urn"=>"g5-cl-1234-location"}
14422
+ 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"]]
14423
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.3ms)
14424
+  (0.1ms) ROLLBACK
14425
+  (0.1ms) BEGIN
14426
+  (0.1ms) ROLLBACK
14427
+  (0.1ms) BEGIN
14428
+  (0.1ms) SAVEPOINT active_record_1
14429
+ 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", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 22:59:51.345505"], ["updated_at", "2015-06-10 22:59:51.345505"]]
14430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14431
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 583]]
14432
+  (0.1ms) ROLLBACK
14433
+  (0.1ms) BEGIN
14434
+  (0.1ms) ROLLBACK
14435
+  (0.1ms) BEGIN
14436
+  (0.1ms) ROLLBACK
14437
+  (0.1ms) BEGIN
14438
+  (0.1ms) ROLLBACK
14439
+  (0.1ms) BEGIN
14440
+  (0.1ms) ROLLBACK
14441
+  (0.1ms) BEGIN
14442
+  (0.1ms) ROLLBACK
14443
+  (0.1ms) BEGIN
14444
+  (0.1ms) SAVEPOINT active_record_1
14445
+ 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-10 22:59:51.365944"], ["updated_at", "2015-06-10 22:59:51.365944"]]
14446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14447
+  (0.1ms) SAVEPOINT active_record_1
14448
+ SQL (0.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-10 22:59:51.368151"], ["updated_at", "2015-06-10 22:59:51.368151"]]
14449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14450
+ 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"]]
14451
+  (0.1ms) ROLLBACK
14452
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
14453
+  (0.2ms) BEGIN
14454
+ 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"]]
14455
+  (0.2ms) SAVEPOINT active_record_1
14456
+ 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-10 23:01:00.790821"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.794603"]]
14457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14458
+ G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14459
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"
14460
+  (0.1ms) ROLLBACK
14461
+  (0.1ms) BEGIN
14462
+ 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"]]
14463
+  (0.1ms) SAVEPOINT active_record_1
14464
+ SQL (0.2ms) 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-10 23:01:00.802696"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.803250"]]
14465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14466
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14467
+ G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14468
+  (0.2ms) ROLLBACK
14469
+  (0.1ms) BEGIN
14470
+ 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"]]
14471
+  (0.1ms) SAVEPOINT active_record_1
14472
+ SQL (0.2ms) 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-10 23:01:00.807542"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.808019"]]
14473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14474
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14475
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14476
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]
14477
+  (0.1ms) ROLLBACK
14478
+  (0.1ms) BEGIN
14479
+ 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"]]
14480
+  (0.1ms) SAVEPOINT active_record_1
14481
+ SQL (0.2ms) 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-10 23:01:00.812590"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.813031"]]
14482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14483
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14484
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14485
+  (0.1ms) ROLLBACK
14486
+  (0.1ms) BEGIN
14487
+ 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"]]
14488
+  (0.1ms) SAVEPOINT active_record_1
14489
+ SQL (0.2ms) 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-10 23:01:00.816667"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.817111"]]
14490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14491
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14492
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14493
+  (0.1ms) ROLLBACK
14494
+  (0.1ms) BEGIN
14495
+ 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"]]
14496
+  (0.1ms) SAVEPOINT active_record_1
14497
+ SQL (0.2ms) 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-10 23:01:00.820953"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.821400"]]
14498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14499
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14500
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14501
+  (0.1ms) ROLLBACK
14502
+  (0.1ms) BEGIN
14503
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14504
+  (0.1ms) SAVEPOINT active_record_1
14505
+ SQL (0.2ms) 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-10 23:01:00.824934"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.825375"]]
14506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14507
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14508
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14509
+  (0.1ms) ROLLBACK
14510
+  (0.1ms) BEGIN
14511
+  (0.1ms) SAVEPOINT active_record_1
14512
+ 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", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.829323"], ["updated_at", "2015-06-10 23:01:00.829323"]]
14513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14514
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14515
+  (0.1ms) SAVEPOINT active_record_1
14516
+ SQL (0.2ms) 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-10 23:01:00.831278"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.831786"]]
14517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14518
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14519
+  (0.1ms) SAVEPOINT active_record_1
14520
+ SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1174]]
14521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14522
+  (0.2ms) 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"]]
14523
+  (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"]]
14524
+  (0.1ms) ROLLBACK
14525
+  (0.1ms) BEGIN
14526
+  (0.1ms) SAVEPOINT active_record_1
14527
+ SQL (0.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/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-10 23:01:00.837795"], ["updated_at", "2015-06-10 23:01:00.837795"]]
14528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14529
+  (0.1ms) SAVEPOINT active_record_1
14530
+ SQL (0.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/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-10 23:01:00.839780"], ["updated_at", "2015-06-10 23:01:00.839780"]]
14531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14532
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
14533
+  (0.1ms) SAVEPOINT active_record_1
14534
+ SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1176]]
14535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14536
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
14537
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]
14538
+  (0.1ms) ROLLBACK
14539
+  (0.1ms) BEGIN
14540
+  (0.1ms) SAVEPOINT active_record_1
14541
+ SQL (0.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/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-10 23:01:00.844980"], ["updated_at", "2015-06-10 23:01:00.844980"]]
14542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14543
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14544
+  (0.1ms) SAVEPOINT active_record_1
14545
+ SQL (0.3ms) 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-10 23:01:00.846716"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1178]]
14546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14547
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14548
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_locations"
14549
+  (0.1ms) ROLLBACK
14550
+  (0.2ms) BEGIN
14551
+  (0.1ms) SAVEPOINT active_record_1
14552
+ SQL (0.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/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-10 23:01:00.852366"], ["updated_at", "2015-06-10 23:01:00.852366"]]
14553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14554
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14555
+  (0.1ms) SAVEPOINT active_record_1
14556
+ SQL (0.3ms) 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-10 23:01:00.854131"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1179]]
14557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14558
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14559
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14560
+  (0.1ms) ROLLBACK
14561
+  (0.1ms) BEGIN
14562
+  (0.1ms) SAVEPOINT active_record_1
14563
+ SQL (0.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/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-10 23:01:00.858685"], ["updated_at", "2015-06-10 23:01:00.858685"]]
14564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14565
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14566
+  (0.1ms) SAVEPOINT active_record_1
14567
+ SQL (0.3ms) 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-10 23:01:00.860352"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1180]]
14568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14569
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14570
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14571
+  (0.1ms) ROLLBACK
14572
+  (0.1ms) BEGIN
14573
+  (0.1ms) SAVEPOINT active_record_1
14574
+ SQL (0.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/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-10 23:01:00.865061"], ["updated_at", "2015-06-10 23:01:00.865061"]]
14575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14576
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
14577
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14578
+  (0.1ms) SAVEPOINT active_record_1
14579
+ SQL (0.2ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-10 23:01:00.867398"], ["id", 1181]]
14580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14581
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
14582
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1181]]
14583
+  (0.1ms) ROLLBACK
14584
+  (0.1ms) BEGIN
14585
+  (0.1ms) ROLLBACK
14586
+  (0.1ms) BEGIN
14587
+  (0.1ms) ROLLBACK
14588
+  (0.1ms) BEGIN
14589
+  (0.1ms) ROLLBACK
14590
+  (0.1ms) BEGIN
14591
+  (0.1ms) ROLLBACK
14592
+  (0.1ms) BEGIN
14593
+  (0.1ms) ROLLBACK
14594
+  (0.1ms) BEGIN
14595
+  (0.1ms) ROLLBACK
14596
+  (0.1ms) BEGIN
14597
+  (0.1ms) ROLLBACK
14598
+  (0.1ms) BEGIN
14599
+  (0.2ms) ROLLBACK
14600
+  (0.1ms) BEGIN
14601
+  (0.2ms) ROLLBACK
14602
+  (0.1ms) BEGIN
14603
+  (0.1ms) ROLLBACK
14604
+  (0.1ms) BEGIN
14605
+  (0.1ms) SAVEPOINT active_record_1
14606
+ 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-10 23:01:00.911447"], ["updated_at", "2015-06-10 23:01:00.911447"]]
14607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14608
+  (0.1ms) SAVEPOINT active_record_1
14609
+ SQL (0.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-10 23:01:00.913976"], ["updated_at", "2015-06-10 23:01:00.913976"]]
14610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14611
+ 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"]]
14612
+  (0.1ms) ROLLBACK
14613
+  (0.2ms) BEGIN
14614
+  (0.1ms) ROLLBACK
14615
+  (0.1ms) BEGIN
14616
+  (0.1ms) ROLLBACK
14617
+  (0.1ms) BEGIN
14618
+  (0.1ms) SAVEPOINT active_record_1
14619
+ SQL (0.2ms) 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-10 23:01:00.932240"], ["updated_at", "2015-06-10 23:01:00.932240"]]
14620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14621
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 586]]
14622
+  (0.1ms) ROLLBACK
14623
+  (0.1ms) BEGIN
14624
+  (0.1ms) ROLLBACK
14625
+  (0.1ms) BEGIN
14626
+  (0.1ms) SAVEPOINT active_record_1
14627
+ SQL (0.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-10 23:01:00.937571"], ["updated_at", "2015-06-10 23:01:00.937571"]]
14628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14629
+ Processing by G5Updatable::LocationsController#show as HTML
14630
+ Parameters: {"urn"=>"g5-cl-1234-location"}
14631
+ 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"]]
14632
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
14633
+  (0.1ms) ROLLBACK
14634
+  (0.1ms) BEGIN
14635
+  (0.1ms) SAVEPOINT active_record_1
14636
+ SQL (0.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-10 23:01:00.945354"], ["updated_at", "2015-06-10 23:01:00.945354"]]
14637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14638
+ Processing by G5Updatable::LocationsController#show as HTML
14639
+ Parameters: {"urn"=>"g5-cl-1234-location"}
14640
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]]
14641
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
14642
+  (0.1ms) ROLLBACK
14643
+  (0.1ms) BEGIN
14644
+  (0.2ms) ROLLBACK
14645
+  (0.1ms) BEGIN
14646
+  (0.1ms) ROLLBACK
14647
+  (0.1ms) BEGIN
14648
+  (0.2ms) ROLLBACK
14649
+  (0.1ms) BEGIN
14650
+  (0.1ms) ROLLBACK
14651
+  (0.1ms) BEGIN
14652
+  (0.1ms) SAVEPOINT active_record_1
14653
+ SQL (0.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-10 23:01:00.970162"], ["updated_at", "2015-06-10 23:01:00.970162"]]
14654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14655
+  (0.1ms) SAVEPOINT active_record_1
14656
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.972238"], ["updated_at", "2015-06-10 23:01:00.972238"]]
14657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14658
+ G5Updatable::Location Load (0.5ms) 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"]]
14659
+  (0.2ms) ROLLBACK
14660
+  (0.1ms) BEGIN
14661
+  (0.1ms) SAVEPOINT active_record_1
14662
+ 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-10 23:01:00.976761"], ["updated_at", "2015-06-10 23:01:00.976761"]]
14663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14664
+  (0.1ms) SAVEPOINT active_record_1
14665
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.979064"], ["updated_at", "2015-06-10 23:01:00.979064"]]
14666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14667
+  (0.8ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"
14668
+  (0.1ms) ROLLBACK
14669
+  (0.1ms) BEGIN
14670
+  (0.1ms) SAVEPOINT active_record_1
14671
+ 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-10 23:01:00.984350"], ["updated_at", "2015-06-10 23:01:00.984350"]]
14672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14673
+  (0.1ms) SAVEPOINT active_record_1
14674
+ SQL (0.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", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.986629"], ["updated_at", "2015-06-10 23:01:00.986629"]]
14675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14676
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]
14677
+  (0.1ms) ROLLBACK
14678
+  (0.1ms) BEGIN
14679
+  (0.1ms) SAVEPOINT active_record_1
14680
+ SQL (0.2ms) 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-10 23:01:00.990110"], ["updated_at", "2015-06-10 23:01:00.990110"]]
14681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14682
+  (0.1ms) SAVEPOINT active_record_1
14683
+ SQL (0.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-10 23:01:00.991979"], ["updated_at", "2015-06-10 23:01:00.991979"]]
14684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14685
+ 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"]]
14686
+  (0.1ms) ROLLBACK
14687
+  (0.1ms) BEGIN
14688
+  (0.1ms) ROLLBACK
14689
+  (0.1ms) BEGIN
14690
+  (0.1ms) ROLLBACK
14691
+  (0.1ms) BEGIN
14692
+  (0.1ms) SAVEPOINT active_record_1
14693
+ SQL (0.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", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 23:01:01.001648"], ["updated_at", "2015-06-10 23:01:01.001648"]]
14694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14695
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1192]]
14696
+  (0.1ms) ROLLBACK
14697
+  (0.1ms) BEGIN
14698
+  (0.1ms) ROLLBACK
14699
+  (0.1ms) BEGIN
14700
+  (0.1ms) ROLLBACK
14701
+  (0.1ms) BEGIN
14702
+  (0.1ms) SAVEPOINT active_record_1
14703
+ 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-10 23:01:01.014211"], ["updated_at", "2015-06-10 23:01:01.014211"]]
14704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14705
+  (0.1ms) SAVEPOINT active_record_1
14706
+ 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-10 23:01:01.016625"], ["updated_at", "2015-06-10 23:01:01.016625"]]
14707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14708
+  (0.1ms) SAVEPOINT active_record_1
14709
+ SQL (0.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-10 23:01:01.019115"], ["updated_at", "2015-06-10 23:01:01.019115"]]
14710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14711
+  (0.1ms) SAVEPOINT active_record_1
14712
+ 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-10 23:01:01.021087"], ["updated_at", "2015-06-10 23:01:01.021087"]]
14713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14714
+  (0.1ms) SAVEPOINT active_record_1
14715
+ 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-10 23:01:01.023611"], ["updated_at", "2015-06-10 23:01:01.023611"]]
14716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14717
+ Processing by G5Updatable::SyncsController#index as HTML
14718
+ Parameters: {"urn"=>"xxx"}
14719
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]]
14720
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)
14721
+  (0.1ms) ROLLBACK
14722
+  (0.2ms) BEGIN
14723
+  (0.1ms) SAVEPOINT active_record_1
14724
+ 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-10 23:01:01.031912"], ["updated_at", "2015-06-10 23:01:01.031912"]]
14725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14726
+  (0.1ms) SAVEPOINT active_record_1
14727
+ SQL (0.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-10 23:01:01.034243"], ["updated_at", "2015-06-10 23:01:01.034243"]]
14728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14729
+  (0.1ms) SAVEPOINT active_record_1
14730
+ SQL (0.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-10 23:01:01.036117"], ["updated_at", "2015-06-10 23:01:01.036117"]]
14731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14732
+  (0.1ms) SAVEPOINT active_record_1
14733
+ 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-10 23:01:01.038184"], ["updated_at", "2015-06-10 23:01:01.038184"]]
14734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14735
+  (0.1ms) SAVEPOINT active_record_1
14736
+ SQL (0.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-10 23:01:01.041278"], ["updated_at", "2015-06-10 23:01:01.041278"]]
14737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14738
+ Processing by G5Updatable::SyncsController#index as HTML
14739
+ Parameters: {"urn"=>"g5-c-1234-client"}
14740
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]
14741
+  (0.3ms) 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"]]
14742
+ Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.5ms)
14743
+  (0.2ms) ROLLBACK
14744
+  (0.1ms) BEGIN
14745
+  (0.1ms) SAVEPOINT active_record_1
14746
+ SQL (0.2ms) 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-10 23:01:01.049019"], ["updated_at", "2015-06-10 23:01:01.049019"]]
14747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14748
+ 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"]]
14749
+  (0.1ms) SAVEPOINT active_record_1
14750
+ SQL (0.3ms) 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-10 23:01:01.051832"], ["id", 592]]
14751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14752
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"
14753
+  (0.1ms) ROLLBACK
14754
+  (0.1ms) BEGIN
14755
+  (0.1ms) SAVEPOINT active_record_1
14756
+ SQL (0.2ms) 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-10 23:01:01.055363"], ["updated_at", "2015-06-10 23:01:01.055363"]]
14757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14758
+ 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"]]
14759
+  (0.1ms) SAVEPOINT active_record_1
14760
+ SQL (0.3ms) 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-10 23:01:01.057696"], ["id", 593]]
14761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14762
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14763
+  (0.1ms) ROLLBACK
14764
+  (0.1ms) BEGIN
14765
+  (0.1ms) SAVEPOINT active_record_1
14766
+ SQL (0.2ms) 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-10 23:01:01.061746"], ["updated_at", "2015-06-10 23:01:01.061746"]]
14767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14768
+ 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"]]
14769
+  (0.1ms) SAVEPOINT active_record_1
14770
+ SQL (0.3ms) 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-10 23:01:01.064320"], ["id", 594]]
14771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14772
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14773
+  (0.1ms) ROLLBACK
14774
+  (0.1ms) BEGIN
14775
+ 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"]]
14776
+  (0.1ms) SAVEPOINT active_record_1
14777
+ 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-10 23:01:01.068575"], ["updated_at", "2015-06-10 23:01:01.068575"]]
14778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14779
+  (0.2ms) SELECT COUNT(*) FROM "g5_updatable_clients"
14780
+  (0.1ms) ROLLBACK
14781
+  (0.1ms) BEGIN
14782
+ 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"]]
14783
+  (0.1ms) SAVEPOINT active_record_1
14784
+ SQL (0.2ms) 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-10 23:01:01.072760"], ["updated_at", "2015-06-10 23:01:01.072760"]]
14785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14786
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14787
+  (0.1ms) ROLLBACK
14788
+  (0.1ms) BEGIN
14789
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14790
+  (0.1ms) SAVEPOINT active_record_1
14791
+ SQL (0.2ms) 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-10 23:01:01.076347"], ["updated_at", "2015-06-10 23:01:01.076347"]]
14792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14793
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14794
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]
14795
+  (0.1ms) ROLLBACK
14796
+  (0.1ms) BEGIN
14797
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14798
+  (0.1ms) SAVEPOINT active_record_1
14799
+ SQL (0.2ms) 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-10 23:01:01.081062"], ["updated_at", "2015-06-10 23:01:01.081062"]]
14800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14801
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14802
+  (0.1ms) ROLLBACK
14803
+  (0.1ms) BEGIN
14804
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14805
+  (0.1ms) SAVEPOINT active_record_1
14806
+ SQL (0.2ms) 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-10 23:01:01.085232"], ["updated_at", "2015-06-10 23:01:01.085232"]]
14807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14808
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14809
+  (0.1ms) ROLLBACK
14810
+  (0.1ms) BEGIN
14811
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
14812
+  (0.1ms) SAVEPOINT active_record_1
14813
+ SQL (0.2ms) 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-10 23:01:01.089222"], ["updated_at", "2015-06-10 23:01:01.089222"]]
14814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
14815
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
14816
+  (0.1ms) ROLLBACK
14817
+  (0.1ms) BEGIN
14818
+  (0.1ms) ROLLBACK
14819
+  (0.1ms) BEGIN
14820
+  (0.1ms) ROLLBACK
14821
+  (0.1ms) BEGIN
14822
+  (0.1ms) ROLLBACK
14823
+  (0.1ms) BEGIN
14824
+  (0.1ms) ROLLBACK
@@ -23,8 +23,17 @@ describe G5Updatable::Location do
23
23
  subject { location.client }
24
24
 
25
25
  it { should eq(client) }
26
- end
27
26
 
27
+ describe "client_urn" do
28
+ it "delegates client_urn to client" do
29
+ expect(location.client_urn).to eq(client.urn)
30
+ end
31
+
32
+ it "returns nil if client not found" do
33
+ expect(create(:location, client_uid: 'madeup').client_urn).to be_nil
34
+ end
35
+ end
36
+ end
28
37
 
29
38
  context "scopes" do
30
39
  let!(:location) { FactoryGirl.create(:location) }
@@ -47,6 +56,5 @@ describe G5Updatable::Location do
47
56
  expect(described_class.by_urn(location.urn)).to eq [location]
48
57
  end
49
58
  end
50
-
51
59
  end
52
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_updatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-27 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: g5_foundation_client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: 0.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: 0.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pg
43
43
  requirement: !ruby/object:Gem::Requirement